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
  • name/n (str) – an optional name for the locator transform; defaults to a contextual name

  • rotateOrder/ro (int, str, Attribute) – the rotate order of this euler rotation; defaults to ‘xyz’

Returns

A locator with this euler rotation piped into its rotate channels.

Return type

Transform

get(plug=False, **kwargs)#

Overrides get() to return EulerRotation values. If this is the rotate channel on a transform node, rotation order is taken from the transform.

set(*args, **kwargs)#

Overloads get() to ensure that instances of EulerRotation 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

bool

isRotateChannel()#
Returns

True if this is the rotate channel on a transform, otherwise False.

Return type

bool

reorder(newRotateOrder, rotateOrder='xyz')#
Parameters
  • newRotateOrder (str, int, Math1D) – The new rotate order, e.g. 'yxz'.

  • rotateOrder/ro (str, int, Math1D) – The old rotate order; defaults to 'xyz'

Returns

The reordered euler rotation.

Return type

EulerRotation

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

Quaternion

asAxisAngle(rotateOrder='xyz')#
Parameters

rotateOrder/ro (str, int, Math1D) – this output’s rotate order

Returns

An axis-angle representation of this euler rotation.

Return type

tuple (Vector, Angle)

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 return self.