nuke.splinewarp.AnimCTransform
- class nuke.splinewarp.AnimCTransform
Bases:
objectAn animated transform, where each part of the transform is represented as a curve over time.
Methods
self.addPivotPointKey(time, x, y, pressure, view='default') -> None
self.addRotationKey(time, x, y, pressure, view='default') -> None
self.addScaleKey(time, x, y, pressure, view='default') -> None
self.addSkewXKey(time, x, y, pressure, view='default') -> None
self.addTransformKey(time, view) -> None
self.addTranslationKey(time, x, y, pressure, view='default') -> None
self.evaluate(time, view) -> None
self.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.
self.getNumberOfPivotPointKeys(view) -> int Get the number of keys for the pivotPoint attribute.
self.getNumberOfRotationKeys(view) -> int Get the number of keys for the rotation attribute.
self.getNumberOfScaleKeys(view) -> int Get the number of keys for the scale attribute.
self.getNumberOfSkewXKeys(view) -> int Get the number of keys for the skewX attribute.
self.getNumberOfTransformKeys(view) -> int Get the number of keys for all attributes of this transform.
self.getNumberOfTranslationKeys(view) -> int Get the number of keys for the translation attribute.
self.getPivotPointAnimCurve(index, view) -> AnimCurve
self.getPivotPointKeyTime(index, view) -> float Get the time for a specific key on the pivotPoint attribute.
self.getPivotPointKeyTimes(view) -> list of floats Get the times for all keys on the pivotPoint attribute.
self.getRotationAnimCurve(index, view) -> AnimCurve
self.getRotationKeyTime(index, view) -> float Get the time for a specific key on the rotation attribute.
self.getRotationKeyTimes(view) -> list of floats Get the times for all keys on the rotation attribute.The view parameter is optional.
self.getScaleAnimCurve(index, view) -> AnimCurve
self.getScaleKeyTime(index, view) -> float Get the time for a specific key on the scale attribute.
self.getScaleKeyTimes(view) -> list of floats Get the times for all keys on the scale attribute.
self.getSkewXAnimCurve(index, view) -> AnimCurve
self.getSkewXKeyTime(index, view) -> float Get the time for a specific key on the skewX attribute.
self.getSkewXKeyTimes(view) -> list of floats Get the times for all keys on the skewX attribute.
self.getTransformKeyTime(index, view) -> float Get the time for a specific key.
self.getTransformKeyTimes(view) -> list of floats Get the times for all keys, across all attributes of this transform.
self.getTranslationAnimCurve(index, view) -> AnimCurve
self.getTranslationKeyTime(index, view) -> float Get the time for a specific key on the translation attribute.
self.getTranslationKeyTimes(view) -> list of floats Get the times for all keys on the translation attribute.
self.isDefault() -> bool Check whether this transform has been modified away from the default values.
self.removePivotPointKey(time, view) -> None
self.removeRotationKey(time, view) -> None
self.removeScaleKey(time, view) -> None
self.removeSkewXKey(time, view) -> None
self.removeTransformKey(time, view) -> None
self.removeTranslationKey(time, view) -> None
self.reset() -> None
self.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
self.setIdentity(view='default') -> None
self.setPivotPointAnimCurve(index, animCurve, view) -> None Set the anim curve for the pivot point attribute of this transform.
self.setRotationAnimCurve(index, animCurve, view) -> None Set the anim curve for the rotation attribute of this transform.
self.setScaleAnimCurve(index, animCurve, view) -> None Set the anim curve for the scale attribute of this transform.
self.setSkewXAnimCurve(index, animCurve, view) -> None Set the anim curve for the skewX attribute of this transform.
self.setTranslationAnimCurve(index, animCurve, view) -> None Set the anim curve for the translation attribute of this transform.
Attributes
The name for this transform.
The order in which to perform rotations around the axes.
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.
- 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.
- 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.
- 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.
- 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.
- 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.