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.CKey

This is the animation key base class.

class c4d.CKey

SuperClass

C4DAtom

Methods

CKey.GetTime()

Get the time of this key.

Return type:BaseTime
Returns:The time.
CKey.GetTimeLeft()

Get the left time of this key.

Return type:BaseTime
Returns:The left time.
CKey.GetTimeRight()

Get the left time of this key.

Return type:BaseTime
Returns:The right time.
CKey.GetValue()

Get the value of this key. Just for keys with float values.

Return type:float
Returns:The value.
CKey.GetValueLeft()

Get the value of this key. Just for keys with float values.

Return type:float
Returns:The value.
CKey.GetValueRight()

Get the right of this key. Just for keys with float values.

Return type:float
Returns:The value.
CKey.SetValue(seq, v)

Set the value of this key.

Parameters:
  • seq (CCurve) – The curve.
  • v (float) – The new value.
CKey.SetValueLeft(seq, v)

Set the left value of this key.

Parameters:
  • seq (CCurve) – The curve.
  • v (float) – The new value.
CKey.SetValueRight(seq, v)

Set the right value of this key.

Parameters:
  • seq (CCurve) – The curve.
  • v (float) – The new value.
CKey.SetTime(seq, t)

Set the time of this key.

Parameters:
CKey.SetTimeLeft(seq, t)

Set the left time of this key.

Parameters:
CKey.SetTimeRight(seq, t)

Set the right time of this key.

Parameters:
CKey.GetInterpolation()

Returns the interpolation type.

Return type:

int

Returns:

The interpolation type.

CINTER_SPLINE

Spline.

CINTER_LINEAR

Linear.

CINTER_STEP

Step.

CKey.SetInterpolation(seq, inter)

Set the interpolation type of this key.

Parameters:
  • seq (CCurve) – The curve.
  • int

    The new interpolation type.

    CINTER_SPLINE Spline.
    CINTER_LINEAR Linear.
    CINTER_STEP Step.
CKey.GetTrack()

Get the track of this key.

Return type:CTrack
Returns:The track.
CKey.GetCurve()

Get the curve of this key.

Return type:CCurve
Returns:The curve.
CKey.FlushData()
Flush the key data.
CKey.GetData()

Get the data of this key.

Return type:any
Returns:The data, depends on the key.
CKey.GetClone()

Gets a clone of the key.

Return type:CKey
Returns:The cloned key.

Table Of Contents

This Page