About
The MotionTrackerObject class represents a Cinema 4D motion tracker object. It provides read-only access to properties of the loaded video footage and the created 2D tracks.
MotionTrackerObject objects are an instance of Omotiontracker
.
Access
A MotionTrackerObject object can be accessed like any other object.
if (footage == nullptr)
Definition: c4d_baseobject.h:225
Manages file and path names.
Definition: c4d_file.h:94
String GetString(void) const
Definition: lib_motiontracker.h:358
MtFootageData * GetFootageData() const
PyObject * obj
Definition: complexobject.h:60
#define Omotiontracker
Motion tracker.
Definition: ge_prepass.h:1087
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
#define ApplicationOutput(formatString,...)
Definition: debugdiagnostics.h:210
const char * doc
Definition: pyerrors.h:226
Allocation/Deallocation
MotionTrackerObject objects are created with the usual tools:
if (moTrackObj == nullptr)
moTrackObj->
SetName(
"New Motion Tracker"_s);
doc->InsertObject(moTrackObj,
nullptr,
nullptr);
void SetName(const maxon::String &name)
Definition: c4d_baselist.h:2369
static MotionTrackerObject * Alloc()
Parameters
The standard object parameters of the Motion Tracker object can be accessed with C4DAtom::GetParameter() and C4DAtom::SetParameter(). The parameter IDs are defined in omotiontracker.h
.
Additionally, footage information can be accessed with MotionTrackerObject::GetFootageData() (see below).
Access Data
Internal data of a MotionTrackerObject can be accessed by acquiring specialised data containers that store information on the footage and the 2D tracking data.
See MtFootageData Manual and Mt2dTrackData / Mt2dTrack / MtData Manual.
if (footage == nullptr)
if (trackData == nullptr)
Mt2dTrackData * Get2dTrackData() const
Definition: lib_motiontracker.h:71
Int32 GetTrackCount() const
static void Free(Mt2dTrackData *&p)
Definition: c4d_string.h:39
static String IntToString(Int32 v)
Definition: c4d_string.h:495
maxon::Int32 Int32
Definition: ge_sys_math.h:60
Further Reading