MtData

New in version R18.020.

Definition

class c4d.modules.motiontracker. MtData

Members

MtData. GetNormalisedPosition ( )

Retrieves the track position in normalized coordinates.

Note

x is in range -0.5 to +0.5 from left to right of image. y is in range -0.5/aspect to +0.5/aspect from top to bottom of image, where aspect is the image aspect ratio.
Return type: c4d.Vector
Returns: The track position in normalized coordinates.
MtData. GetPixelPosition ( footageData , originalRes )

Retrieves the track position in pixel coordinates.

Parameters:
  • footageData ( c4d.modules.motiontracker.MtFootageData ) – The footage object (used to define resolution and aspect ratio).
  • originalRes ( int ) – If True , returns pixel coordinates for the original footage. If False , returns pixel coordinates for the downsampled footage.
Return type:

c4d.Vector

Returns:

The track position in pixel coordinates.

MtData. GetCameraSpaceDirection ( focalLength , sensorWidth )

Retrieves the camera space ray corresponding to track position.

Parameters:
  • focalLength ( float ) – The focal length to use for the camera (mm).
  • sensorWidth ( float ) – The sensor width to use for the camera (mm).
Return type:

c4d.Vector

Returns:

The ray in camera space corresponding to the position of the track.

Table Of Contents