Creates a new transform node, parents it under parent, attaches it to the function set and returns it in an MObject. If parent is MObject.kNullObj then the new transform will be parented under the world.
OpenMaya.MFnTransform.enableLimit
(
)
Enables or disables a specified limit type.
Signature:
enableLimit(limitType, state)
Parameters:
limitType - Limit Type constant
state - bool
Returns:
Reference to self
Description:
Enables or disables the specified limitType.
OpenMaya.MFnTransform.isLimited
(
)
Returns True if the specified limit type is enabled.
Signature:
isLimited(limitType)
Parameters:
limitType - Limit Type constant
Returns:
bool
Description:
Returns True if the specified limitType is enabled.
OpenMaya.MFnTransform.limitValue
(
)
Returns the value of the specified limit.
Signature:
limitValue(limitType)
Parameters:
limitType - Limit Type constant
Returns:
float
Description:
Returns the value of the specified limit.
OpenMaya.MFnTransform.resetFromRestPosition
(
)
Resets the transform from its rest position matrix.
seq - sequence of 4 floats or 3 floats and a Rotation Order constant
space - MSpace constant
asQuaternion - bool
Returns:
Reference to self.
Description:
Adds the rotation represented by the four parameter values to the transform's rotate component. If asQuaternion is True then seq must contain four floats representing the x, y, z and w components of a quaternion rotation. If asQuaternion is False then seq must contain three floats representing the x, y and z angles, followed by an MTransformationMatrix Rotation Order constant, which together form an Euler rotation.
OpenMaya.MFnTransform.rotateOrientation
(
)
Returns the MQuaternion which orients the local rotation space.
Returns a list containing the four components of the transform's rotate component. If asQuaternion is True then the first three elements are the quaternion's unreal x, y, and z components, and the fourth is its real w component. If asQuaternion is False then the first three components are the x, y and z Euler rotation angles and the fourth is an MTransformationMatrix Rotation Order constant.
OpenMaya.MFnTransform.rotationOrder
(
)
Returns the order of rotations when the transform's rotation is expressed as an MEulerRotation.
Sets the rotation which orients the local rotation space. If balance is True then the transform's other components will be adjusted to give the same overall transformation as before.
OpenMaya.MFnTransform.setRotatePivot
(
)
Sets the transform's rotate pivot.
Signature:
setRotatePivot(pivot, space, balance))
Parameters:
pivot - MPoint
space - MSpace constant
balance - bool
seq - sequence of 4 floats or 3 floats and a Rotation Order constant
space - MSpace constant
asQuaternion - bool
Returns:
Reference to self.
Description:
Sets the transform's rotate component. If asQuaternion is True then seq must contain four floats representing the x, y, z and w components of a quaternion rotation. If asQuaternion is False then seq must contain three floats representing the x, y and z angles, followed by an MTransformationMatrix Rotation Order constant, which together form an Euler rotation.
Sets the transform's rotation order. If reorder is True then the X, Y and Z rotations will be modified so that the resulting rotation under the new order is the same as it was under the old. If reorder is False then the X, Y and Z rotations are unchanged.
OpenMaya.MFnTransform.setScale
(
)
Sets the transform's scale components.
Signature:
setScale(seq)
Parameters:
seq - sequence of 3 floats
Returns:
Reference to self.
Description:
Sets the transform's scale components to the three floats in seq.
OpenMaya.MFnTransform.setScalePivot
(
)
Sets the transform's scale pivot.
Signature:
setScalePivot(pivot, space, balance)
Parameters:
pivot - MPoint
space - MSpace constant
balance - bool