This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com

c4d.CTrack

This is the animation track base class. Contains CCurve that contain CKeys. A BaseList2D can host a CTrack object. This can be the position, rotation or custom value track. These tracks contain a CCurve which contains CKeys.

class c4d.CTrack

SuperClass

BaseList2D

Methods

CTrack.GetCurve()

Get a curve of this track.

Return type:CCurve
Returns:Returns the curve of this track.
CTrack.GetTrackCategory()

Get a curve of this track.

Return type:

int

Returns:

Track category

CTRACK_CATEGORY_VALUE

Value track.

CTRACK_CATEGORY_DATA

Data track.

CTRACK_CATEGORY_PLUGIN

Plugin track.

CTrack.GetObject()

The the host object of this track.

Return type:BaseList2D
Returns:The host object or None.
CTrack.GetBefore()

Get the pre track loop type of this track.

Return type:

int

Returns:

Loop type:

CLOOP_OFF

No loop.

CLOOP_CONSTANT

Constant

CLOOP_CONTINUE

Continue.

CLOOP_REPEAT

Repeat.

CLOOP_OFFSETREPEAT

Offset repeat

CLOOP_OSCILLATE

Oscillate

CTrack.GetAfter()

Get the pre track loop type of this track.

Return type:

int

Returns:

Loop type:

CLOOP_OFF

No loop.

CLOOP_CONSTANT

Constant

CLOOP_CONTINUE

Continue.

CLOOP_REPEAT

Repeat.

CLOOP_OFFSETREPEAT

Offset repeat

CLOOP_OSCILLATE

Oscillate

CTrack.SetBefore(type)

Set the pre track loop type of this track.

Parameter:type (int) –

Loop type:

CLOOP_OFF No loop.
CLOOP_CONSTANT Constant
CLOOP_CONTINUE Continue.
CLOOP_REPEAT Repeat.
CLOOP_OFFSETREPEAT Offset repeat
CLOOP_OSCILLATE Oscillate
CTrack.SetAfter(type)

Set the post track loop type of this track.

Parameter:type (int) –

Loop type:

CLOOP_OFF No loop.
CLOOP_CONSTANT Constant
CLOOP_CONTINUE Continue.
CLOOP_REPEAT Repeat.
CLOOP_OFFSETREPEAT Offset repeat
CLOOP_OSCILLATE Oscillate
CTrack.Flush()
Clears the data of the track itself, for example removes time curves, pre/post loop type, etc.
CTrack.GetHeight()

Get the height of the track.

Return type:int
Returns:The height in pixels.
CTrack.GetFCurveHeight(id)

Get the height of the mini f-curves in the timeline.

Parameter:id (int) – 0-3 for one of the four timelines.
Return type:int
Returns:The height of the mini f-curve in pixels.
CTrack.SetFCurveHeight(id, size)

Get the height of the track.

Parameters:
  • id (int) – 0-3 for one of the four timelines.
  • size (int) – The new size of the mini f-curve in pixels.

Table Of Contents

This Page