pymel.core.nodetypes.DynBase

Inheritance diagram of DynBase

class DynBase(*args, **kwargs)
LimitType = Enum( EnumValue('LimitType', 0, 'scaleMinX'), EnumValue('LimitType', 1, 'scaleMaxX'), EnumValue('LimitType', 2, 'scaleMinY'), EnumValue('LimitType', 3, 'scaleMaxY'), EnumValue('LimitType', 4, 'scaleMinZ'), EnumValue('LimitType', 5, 'scaleMaxZ'), EnumValue('LimitType', 6, 'shearMinXY'), EnumValue('LimitType', 7, 'shearMaxXY'), EnumValue('LimitType', 8, 'shearMinXZ'), EnumValue('LimitType', 9, 'shearMaxXZ'), EnumValue('LimitType', 10, 'shearMinYZ'), EnumValue('LimitType', 11, 'shearMaxYZ'), EnumValue('LimitType', 12, 'rotateMinX'), EnumValue('LimitType', 13, 'rotateMaxX'), EnumValue('LimitType', 14, 'rotateMinY'), EnumValue('LimitType', 15, 'rotateMaxY'), EnumValue('LimitType', 16, 'rotateMinZ'), EnumValue('LimitType', 17, 'rotateMaxZ'), EnumValue('LimitType', 18, 'translateMinX'), EnumValue('LimitType', 19, 'translateMaxX'), EnumValue('LimitType', 20, 'translateMinY'), EnumValue('LimitType', 21, 'translateMaxY'), EnumValue('LimitType', 22, 'translateMinZ'), EnumValue('LimitType', 23, 'translateMaxZ'))
enableLimit(type, flag)

Enable or disable the limit value for the specified limit type.

Parameters :
type : Transform.LimitType

type to apply a limit

values: ‘scaleMinX’, ‘scaleMaxX’, ‘scaleMinY’, ‘scaleMaxY’, ‘scaleMinZ’, ‘scaleMaxZ’, ‘shearMinXY’, ‘shearMaxXY’, ‘shearMinXZ’, ‘shearMaxXZ’, ‘shearMinYZ’, ‘shearMaxYZ’, ‘rotateMinX’, ‘rotateMaxX’, ‘rotateMinY’, ‘rotateMaxY’, ‘rotateMinZ’, ‘rotateMaxZ’, ‘translateMinX’, ‘translateMaxX’, ‘translateMinY’, ‘translateMaxY’, ‘translateMinZ’, ‘translateMaxZ’

flag : bool

true or false to enable

Derived from api method maya.OpenMaya.MFnTransform.enableLimit

getRotateOrientation(space)

Returns the rotation used to orient the local rotation space. For the precise mathematics, refer to the transformation matrix details in the description section of MFnTransform .

Parameters :
space : Space.Space

space in which to get the rotation orientation. This argument is currently ignored. The rotateOrientation is always returned in local space: MSpace::kTransform.

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

Return type:

Quaternion

Derived from api method maya.OpenMaya.MSpace.rotateOrientation

getRotationQuaternion(space='transform')

Retrieve the rotation component of this transformation as a quaternion. The only valid transformation spaces for this method are MSpace::kTransform and MSpace::kWorld . All other spaces are treated as being equivalent to MSpace::kTransform .

Parameters :
space : Space.Space

transform space in which to get the rotation

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

Return type:

(float, float, float, float)

Derived from api method maya.OpenMaya.MSpace.getRotationQuaternion

limitValue(type)

Determine the current value of the specified limit.

Parameters :
type : Transform.LimitType

type to query limit

values: ‘scaleMinX’, ‘scaleMaxX’, ‘scaleMinY’, ‘scaleMaxY’, ‘scaleMinZ’, ‘scaleMaxZ’, ‘shearMinXY’, ‘shearMaxXY’, ‘shearMinXZ’, ‘shearMaxXZ’, ‘shearMinYZ’, ‘shearMaxYZ’, ‘rotateMinX’, ‘rotateMaxX’, ‘rotateMinY’, ‘rotateMaxY’, ‘rotateMinZ’, ‘rotateMaxZ’, ‘translateMinX’, ‘translateMaxX’, ‘translateMinY’, ‘translateMaxY’, ‘translateMinZ’, ‘translateMaxZ’

Return type:

float

Derived from api method maya.OpenMaya.MFnTransform.limitValue

rotateByQuaternion(x, y, z, w, space='transform')

Relatively change the rotation of this transformation using a quaternion.

Parameters :
x : float

x component of the quaternion

y : float

y component of the quaternion

z : float

z component of the quaternion

w : float

w component of the quaternion

space : Space.Space

transform space in which to perform the rotation

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

Derived from api method maya.OpenMaya.MSpace.rotateByQuaternion

Undo is not currently supported for this method

set(transform)

Change this transform to equal the given matrix.

Parameters :
transform : TransformationMatrix

the matrix to copy

Derived from api method maya.OpenMaya.MFnTransform.set

setRotateOrientation(quat, space, balance=True)

Set the rotation used to orient the local rotation space. For the precise mathematics, refer to the transformation matrix details in the description section of MFnTransform .

Parameters :
quat : Quaternion

new orientation as a quaternion

space : Space.Space

transform space in which to set the rotateOrientation. This argument is currently ignored. The rotateOrientation always set in local space: MSpace::kTransform.

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

balance : bool

whether to balance the overall transformation matrix

Derived from api method maya.OpenMaya.MSpace.setRotateOrientation

setRotationQuaternion(x, y, z, w, space='transform')

Change the rotation component of this transformation using a quaternion. The only valid transformation spaces for this method are MSpace::kTransform and MSpace::kWorld . All other spaces are treated as being equivalent to MSpace::kTransform .

Parameters :
x : float

x component of the quaternion

y : float

y component of the quaternion

z : float

z component of the quaternion

w : float

w component of the quaternion

space : Space.Space

transform space in which to perform the rotation

values: ‘transform’, ‘preTransform’, ‘object’, ‘world’

Derived from api method maya.OpenMaya.MSpace.setRotationQuaternion

transformation()

Retrieve the transformation matrix represented by this transform.

Return type:TransformationMatrix

Derived from api method maya.OpenMaya.MFnTransform.transformation

Previous topic

pymel.core.nodetypes.DropoffLocator

Next topic

pymel.core.nodetypes.DynController

Core

Core Modules

Other Modules

This Page