nuke.splinewarp.AnimCTransform

class nuke.splinewarp.AnimCTransform

Bases: object

An animated transform, where each part of the transform is represented as a curve over time.

Methods

addPivotPointKey

addRotationKey

addScaleKey

addSkewXKey

addTransformKey

addTranslationKey

evaluate

getExtraMatrixAnimCurve

Returns the AnimCurve object for the 4i+j element in the transform's extra matrix.The view parameter is optional.

getNumberOfPivotPointKeys

Get the number of keys for the pivotPoint attribute.

getNumberOfRotationKeys

Get the number of keys for the rotation attribute.

getNumberOfScaleKeys

Get the number of keys for the scale attribute.

getNumberOfSkewXKeys

Get the number of keys for the skewX attribute.

getNumberOfTransformKeys

Get the number of keys for all attributes of this transform.

getNumberOfTranslationKeys

Get the number of keys for the translation attribute.

getPivotPointAnimCurve

getPivotPointKeyTime

Get the time for a specific key on the pivotPoint attribute.

getPivotPointKeyTimes

Get the times for all keys on the pivotPoint attribute.

getRotationAnimCurve

getRotationKeyTime

Get the time for a specific key on the rotation attribute.

getRotationKeyTimes

Get the times for all keys on the rotation attribute.The view parameter is optional.

getScaleAnimCurve

getScaleKeyTime

Get the time for a specific key on the scale attribute.

getScaleKeyTimes

Get the times for all keys on the scale attribute.

getSkewXAnimCurve

getSkewXKeyTime

Get the time for a specific key on the skewX attribute.

getSkewXKeyTimes

Get the times for all keys on the skewX attribute.

getTransformKeyTime

Get the time for a specific key.

getTransformKeyTimes

Get the times for all keys, across all attributes of this transform.

getTranslationAnimCurve

getTranslationKeyTime

Get the time for a specific key on the translation attribute.

getTranslationKeyTimes

Get the times for all keys on the translation attribute.

isDefault

Check whether this transform has been modified away from the default values.

removePivotPointKey

removeRotationKey

removeScaleKey

removeSkewXKey

removeTransformKey

removeTranslationKey

reset

setExtraMatrixAnimCurve

Sets the AnimCurve object for the '4i+j'-th element of the extra matrix.The view parameter is optional

setIdentity

setPivotPointAnimCurve

Set the anim curve for the pivot point attribute of this transform.

setRotationAnimCurve

Set the anim curve for the rotation attribute of this transform.

setScaleAnimCurve

Set the anim curve for the scale attribute of this transform.

setSkewXAnimCurve

Set the anim curve for the skewX attribute of this transform.

setTranslationAnimCurve

Set the anim curve for the translation attribute of this transform.

Attributes

name

The name for this transform.

rotationOrder

The order in which to perform rotations around the axes.

transformOrder

The order in which to perform the transformations.

addPivotPointKey(time, x, y, pressure, view='default') None
addRotationKey(time, x, y, pressure, view='default') None
addScaleKey(time, x, y, pressure, view='default') None
addSkewXKey(time, x, y, pressure, view='default') None
addTransformKey(time, view) None
addTranslationKey(time, x, y, pressure, view='default') None
evaluate(time, view) None
getExtraMatrixAnimCurve(i, j, view) AnimCurve

Returns the AnimCurve object for the 4i+j element in the transform’s extra matrix.The view parameter is optional.

getNumberOfPivotPointKeys(view) int

Get the number of keys for the pivotPoint attribute. The view parameter is optional.

getNumberOfRotationKeys(view) int

Get the number of keys for the rotation attribute. The view parameter is optional.

getNumberOfScaleKeys(view) int

Get the number of keys for the scale attribute. The view parameter is optional.

getNumberOfSkewXKeys(view) int

Get the number of keys for the skewX attribute. The view parameter is optional.

getNumberOfTransformKeys(view) int

Get the number of keys for all attributes of this transform. The view parameter is optional.

getNumberOfTranslationKeys(view) int

Get the number of keys for the translation attribute. The view parameter is optional.

getPivotPointAnimCurve(index, view) AnimCurve
getPivotPointKeyTime(index, view) float

Get the time for a specific key on the pivotPoint attribute. index is the index of the key. The view parameter is optional.

getPivotPointKeyTimes(view) list of floats

Get the times for all keys on the pivotPoint attribute. The view parameter is optional.

getRotationAnimCurve(index, view) AnimCurve
getRotationKeyTime(index, view) float

Get the time for a specific key on the rotation attribute. index is the index of the key. The view parameter is optional.

getRotationKeyTimes(view) list of floats

Get the times for all keys on the rotation attribute.The view parameter is optional.

getScaleAnimCurve(index, view) AnimCurve
getScaleKeyTime(index, view) float

Get the time for a specific key on the scale attribute. index is the index of the key. The view parameter is optional.

getScaleKeyTimes(view) list of floats

Get the times for all keys on the scale attribute. The view parameter is optional.

getSkewXAnimCurve(index, view) AnimCurve
getSkewXKeyTime(index, view) float

Get the time for a specific key on the skewX attribute. index is the index of the key. The view parameter is optional.

getSkewXKeyTimes(view) list of floats

Get the times for all keys on the skewX attribute. The view parameter is optional.

getTransformKeyTime(index, view) float

Get the time for a specific key. The view parameter is optional.

getTransformKeyTimes(view) list of floats

Get the times for all keys, across all attributes of this transform. The view parameter is optional.

getTranslationAnimCurve(index, view) AnimCurve
getTranslationKeyTime(index, view) float

Get the time for a specific key on the translation attribute. index is the index of the key. The view parameter is optional.

getTranslationKeyTimes(view) list of floats

Get the times for all keys on the translation attribute. The view parameter is optional.

isDefault() bool

Check whether this transform has been modified away from the default values.

name

The name for this transform.

removePivotPointKey(time, view) None
removeRotationKey(time, view) None
removeScaleKey(time, view) None
removeSkewXKey(time, view) None
removeTransformKey(time, view) None
removeTranslationKey(time, view) None
reset() None
rotationOrder

The order in which to perform rotations around the axes.

setExtraMatrixAnimCurve(i, j, animcurve, view) None

Sets the AnimCurve object for the ‘4i+j’-th element of the extra matrix.The view parameter is optional

setIdentity(view='default') None
setPivotPointAnimCurve(index, animCurve, view) None

Set the anim curve for the pivot point attribute of this transform. The index parameter should be 0 for the x values, 1 for the y values. The view parameter is optional.

setRotationAnimCurve(index, animCurve, view) None

Set the anim curve for the rotation attribute of this transform. The index parameter should be 0 for the x values, 1 for the y values. The view parameter is optional.

setScaleAnimCurve(index, animCurve, view) None

Set the anim curve for the scale attribute of this transform. The index parameter should be 0 for the x values, 1 for the y values. The view parameter is optional.

setSkewXAnimCurve(index, animCurve, view) None

Set the anim curve for the skewX attribute of this transform. The index parameter should be 0 for the x values, 1 for the y values. The view parameter is optional.

setTranslationAnimCurve(index, animCurve, view) None

Set the anim curve for the translation attribute of this transform. The index parameter should be 0 for the x values, 1 for the y values. The view parameter is optional.

transformOrder

The order in which to perform the transformations.