c4d.modules.motiontracker.Mt2dTrackData

class c4d.modules.motiontracker.Mt2dTrackData

New in version R18.020.

Methods Signatures

Mt2dTrackData.GetTrackCount()

Retrieves the number of tracks.

Mt2dTrackData.GetTrackByIndex()

Retrieves the track with the given index.

Mt2dTrackData.GetTrackByGid()

Retrieves the track with the given global ID.

Mt2dTrackData.GetTrackByName()

Retrieves the track with the given name.

Mt2dTrackData.GetTrackIndices()

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

c4d.modules.motiontracker.Mt2dTrack

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

c4d.modules.motiontracker.Mt2dTrack

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

c4d.modules.motiontracker.Mt2dTrack

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

c4d.BaseSelect

Returns

The indices of all tracks.