nuke.curvelib.AnimCTransform

class nuke.curvelib.AnimCTransform

Bases: object

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

Methods

addPivotPointKey

self.addPivotPointKey(time, x, y, pressure, view='default') -> None

addRotationKey

self.addRotationKey(time, x, y, pressure, view='default') -> None

addScaleKey

self.addScaleKey(time, x, y, pressure, view='default') -> None

addSkewXKey

self.addSkewXKey(time, x, y, pressure, view='default') -> None

addTransformKey

self.addTransformKey(time, view) -> None

addTranslationKey

self.addTranslationKey(time, x, y, pressure, view='default') -> None

evaluate

self.evaluate(time, view) -> None

getExtraMatrixAnimCurve

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.

getNumberOfPivotPointKeys

self.getNumberOfPivotPointKeys(view) -> int Get the number of keys for the pivotPoint attribute.

getNumberOfRotationKeys

self.getNumberOfRotationKeys(view) -> int Get the number of keys for the rotation attribute.

getNumberOfScaleKeys

self.getNumberOfScaleKeys(view) -> int Get the number of keys for the scale attribute.

getNumberOfSkewXKeys

self.getNumberOfSkewXKeys(view) -> int Get the number of keys for the skewX attribute.

getNumberOfTransformKeys

self.getNumberOfTransformKeys(view) -> int Get the number of keys for all attributes of this transform.

getNumberOfTranslationKeys

self.getNumberOfTranslationKeys(view) -> int Get the number of keys for the translation attribute.

getPivotPointAnimCurve

self.getPivotPointAnimCurve(index, view) -> AnimCurve

getPivotPointKeyTime

self.getPivotPointKeyTime(index, view) -> float Get the time for a specific key on the pivotPoint attribute.

getPivotPointKeyTimes

self.getPivotPointKeyTimes(view) -> list of floats Get the times for all keys on the pivotPoint attribute.

getRotationAnimCurve

self.getRotationAnimCurve(index, view) -> AnimCurve

getRotationKeyTime

self.getRotationKeyTime(index, view) -> float Get the time for a specific key on the rotation attribute.

getRotationKeyTimes

self.getRotationKeyTimes(view) -> list of floats Get the times for all keys on the rotation attribute.The view parameter is optional.

getScaleAnimCurve

self.getScaleAnimCurve(index, view) -> AnimCurve

getScaleKeyTime

self.getScaleKeyTime(index, view) -> float Get the time for a specific key on the scale attribute.

getScaleKeyTimes

self.getScaleKeyTimes(view) -> list of floats Get the times for all keys on the scale attribute.

getSkewXAnimCurve

self.getSkewXAnimCurve(index, view) -> AnimCurve

getSkewXKeyTime

self.getSkewXKeyTime(index, view) -> float Get the time for a specific key on the skewX attribute.

getSkewXKeyTimes

self.getSkewXKeyTimes(view) -> list of floats Get the times for all keys on the skewX attribute.

getTransformKeyTime

self.getTransformKeyTime(index, view) -> float Get the time for a specific key.

getTransformKeyTimes

self.getTransformKeyTimes(view) -> list of floats Get the times for all keys, across all attributes of this transform.

getTranslationAnimCurve

self.getTranslationAnimCurve(index, view) -> AnimCurve

getTranslationKeyTime

self.getTranslationKeyTime(index, view) -> float Get the time for a specific key on the translation attribute.

getTranslationKeyTimes

self.getTranslationKeyTimes(view) -> list of floats Get the times for all keys on the translation attribute.

isDefault

self.isDefault() -> bool Check whether this transform has been modified away from the default values.

removePivotPointKey

self.removePivotPointKey(time, view) -> None

removeRotationKey

self.removeRotationKey(time, view) -> None

removeScaleKey

self.removeScaleKey(time, view) -> None

removeSkewXKey

self.removeSkewXKey(time, view) -> None

removeTransformKey

self.removeTransformKey(time, view) -> None

removeTranslationKey

self.removeTranslationKey(time, view) -> None

reset

self.reset() -> None

setExtraMatrixAnimCurve

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

setIdentity

self.setIdentity(view='default') -> None

setPivotPointAnimCurve

self.setPivotPointAnimCurve(index, animCurve, view) -> None Set the anim curve for the pivot point attribute of this transform.

setRotationAnimCurve

self.setRotationAnimCurve(index, animCurve, view) -> None Set the anim curve for the rotation attribute of this transform.

setScaleAnimCurve

self.setScaleAnimCurve(index, animCurve, view) -> None Set the anim curve for the scale attribute of this transform.

setSkewXAnimCurve

self.setSkewXAnimCurve(index, animCurve, view) -> None Set the anim curve for the skewX attribute of this transform.

setTranslationAnimCurve

self.setTranslationAnimCurve(index, animCurve, view) -> None 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.