c4d.CKey

This is the animation key base class.

Inheritance

Members

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:
CINTERPOLATION_SPLINE Spline Interpolation.
CINTERPOLATION_LINEAR Linear Interpolation
CINTERPOLATION_STEP Step Interpolation.
CKey.SetInterpolation(seq, inter)

Set the interpolation type of this key.

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

    The new interpolation type:

    CINTERPOLATION_SPLINE Spline Interpolation.
    CINTERPOLATION_LINEAR Linear Interpolation
    CINTERPOLATION_STEP Step Interpolation.
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.SetGeData(seq, d)

Set the data of this key.

Parameters:
  • seq (CCurve) – The curve.
  • d (any) – The data.
CKey.GetGeData()

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