pymel.core.animation.poleVectorConstraint

poleVectorConstraint(*args, **kwargs)

Constrains the poleVector of an ikRPsolve handle to point at a target object or at the average position of a number of targets. An poleVectorConstraint takes as input one or more targetDAG transform nodes at which to aim pole vector for an IK handle using the rotate plane solver. The pole vector is adjust such that the in weighted average of the world space position target objects lies is the rotate planeof the handle.

Maya Bug Fix:
  • when queried, upVector, worldUpVector, and aimVector returned the name of the constraint instead of the desired values
Modifications:
  • added new syntax for querying the weight of a target object, by passing the constraint first:

    aimConstraint( 'pCube1_aimConstraint1', q=1, weight ='pSphere1' )
    aimConstraint( 'pCube1_aimConstraint1', q=1, weight =['pSphere1', 'pCylinder1'] )
    aimConstraint( 'pCube1_aimConstraint1', q=1, weight =[] )
    
Flags:
  • name : n (unicode) [create,query,edit]

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

  • remove : rm (bool) [edit]

    removes the listed target(s) from the constraint.

  • targetList : tl (bool) [query]

    Return the list of target objects.

  • weight : w (float) [create,query,edit]

    Sets the weight value for the specified target(s). If not given at creation time, the default value of 1.0 is used.

  • weightAliasList : wal (bool) [query]

    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 Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.poleVectorConstraint

Previous topic

pymel.core.animation.pointOnPolyConstraint

Next topic

pymel.core.animation.pose

Core

Core Modules

Other Modules

This Page