c4d.modules.motiontracker.Mt2dTrackData¶
- 
class 
c4d.modules.motiontracker.Mt2dTrackData¶ New in version R18.020.
Methods Signatures
Retrieves the number of tracks.  | 
|
Retrieves the track with the given index.  | 
|
Retrieves the track with the given global ID.  | 
|
Retrieves the track with the given name.  | 
|
Retrieves the indices of all tracks.  | 
Methods Documentation
- 
Mt2dTrackData.GetTrackCount(self)¶ Retrieves the number of tracks.
- Return type
 int
- Returns
 The number of tracks.
- 
Mt2dTrackData.GetTrackByIndex(self, index)¶ Retrieves the track with the given index.
- Parameters
 index (int) – The track index.
- Return type
 - Returns
 The track.
- 
Mt2dTrackData.GetTrackByGid(self, trkGid)¶ Retrieves the track with the given global ID.
- Parameters
 trkGid (c4d.modules.motiontracker.MtTrkGid) – The track global ID.
- Return type
 - Returns
 The track.
- 
Mt2dTrackData.GetTrackByName(self, name)¶ Retrieves the track with the given name.
- Parameters
 name (str) – The name of the track to search for.
- Return type
 - Returns
 The track.
- 
Mt2dTrackData.GetTrackIndices(self, userTracks=True, autoTracks=True)¶ Retrieves the indices of all tracks.
- Parameters
 userTracks (bool) – True to include User created tracks, otherwise False.
autoTracks (bool) – True to include Automatic tracks, otherwise False.
- Return type
 - Returns
 The indices of all tracks.