paya.runtime.plugs.EulerRotation#
- class EulerRotation(*args, **kwargs)#
Inheritance
Vector
Math
Attribute
Attribute
PyNode
ProxyUnicode
- createLocator(name=None, rotateOrder='xyz', size=1.0)#
- Shorthand
cl
- Parameters
- Returns
A locator with this euler rotation piped into its
rotate
channels.- Return type
- get(plug=False, **kwargs)#
Overrides
get()
to returnEulerRotation
values. If this is therotate
channel on a transform node, rotation order is taken from the transform.
- set(*args, **kwargs)#
Overloads
get()
to ensure that instances ofEulerRotation
with units that don’t match the UI setting are set correctly.
- isTranslateChannel()#
- Returns
True if this is the
translate
channel of a transform node, otherwise False.- Return type
- isRotateChannel()#
- Returns
True if this is the
rotate
channel on a transform, otherwise False.- Return type
- reorder(newRotateOrder, rotateOrder='xyz')#
- asQuaternion(rotateOrder='xyz')#
- Parameters
rotateOrder/ro (
Math1D
, str, int) – the rotate order, defaults to ‘xyz’- Returns
A quaternion representation of this euler rotation.
- Return type
- asAxisAngle(rotateOrder='xyz')#
- asRotateMatrix(rotateOrder='xyz')#
- Parameters
rotateOrder/ro (
Math1D
, str, int) – the rotate order, defaults to ‘xyz’- Returns
This euler rotation as a matrix.
- Return type
Math3D
- asEulerRotation()#
Overrides
asEulerRotation()
to returnself
.