pymel.core.nodetypes.OrientConstraint

Inheritance diagram of OrientConstraint

class OrientConstraint(*args, **kwargs)

class counterpart of mel function orientConstraint

Constrain an object’s orientation to match the orientation of the target or the average of a number of targets. An orientConstraint takes as input one or more “target” DAG transform nodes to control the orientation of the single “constraint object” DAG transform The orientConstraint orients the constrained object to match the weighted average of the target world space orientations.

createCache(val=True, **kwargs)

This flag is used to generate an animation curve that serves as a cache for the constraint. The two arguments define the start and end frames.The cache is useful if the constraint has multiple targets and the constraint’s interpolation type is set to “no flip”. The “no flip” mode prevents flipping during playback, but the result is dependent on the previous frame. Therefore in order to consistently get the same result on a specific frame, a cache must be generated. This flag creates the cache and sets the constraint’s interpolation type to “cache”. If a cache exists already, it will be deleted and replaced with a new cache.

Derived from mel command maya.cmds.orientConstraint

deleteCache(val=True, **kwargs)

Delete an existing interpolation cache.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.orientConstraint

getName(**kwargs)

Sets the name of the constraint node to the specified name. Default name is constrainedObjectName_constraintType

Derived from mel command maya.cmds.orientConstraint

getOffset(**kwargs)

Sets or queries the value of the offset. Default is 0,0,0.

Derived from mel command maya.cmds.orientConstraint

getTargetList(**kwargs)

Return the list of target objects.

Derived from mel command maya.cmds.orientConstraint

getWeightAliasList(**kwargs)

Returns the names of the attributes that control the weight of the target objects. Aliases are returned in the same order as the targets are returned by the targetList flag

Derived from mel command maya.cmds.orientConstraint

layer(val=True, **kwargs)

Specify the name of the animation layer where the constraint should be added.

Derived from mel command maya.cmds.orientConstraint

remove(val=True, **kwargs)

removes the listed target(s) from the constraint.

Derived from mel command maya.cmds.orientConstraint

setName(val=True, **kwargs)

Sets the name of the constraint node to the specified name. Default name is constrainedObjectName_constraintType

Derived from mel command maya.cmds.orientConstraint

setOffset(val=True, **kwargs)

Sets or queries the value of the offset. Default is 0,0,0.

Derived from mel command maya.cmds.orientConstraint

skip(val=True, **kwargs)

Specify the axis to be skipped. Valid values are “x”, “y”, “z” and “none”. The default value in create mode is “none”. This flag is multi-use.

Derived from mel command maya.cmds.orientConstraint

Previous topic

pymel.core.nodetypes.OpticalFX

Next topic

pymel.core.nodetypes.OrientationMarker

Core

Core Modules

Other Modules

This Page