This command creates a flexor. A flexor a deformer plus a set of driving attributes. For example, a flexor might be a sculpt object that is driven by a joint’s x rotation and a cube’s y position.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
atBones (ab) | bool | ||
|
|||
atJoints (aj) | bool | ||
|
|||
deformerCommand (dc) | unicode | ||
|
|||
list (l) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
noScale (ns) | bool | ||
|
|||
toSkeleton (ts) | bool | ||
Specifies that flexors will be added to the entire skeleton rather than just to the selected joints/bones. This flag is used in conjunction with the -ab and -aj flags. |
|||
type (typ) | unicode | ||
|
Derived from mel command maya.cmds.flexor
Example:
import pymel.core as pm
# Create a sculpt object with a max displacement of 4.0 at the
# selected joint
pm.flexor( typ='sculpt', dc="sculpt -mxd 4.0", aj=True )
# Create a lattice flexor at all joints on the skeleton:
pm.flexor( type='jointLattice', aj=True, ts=True )
# Create a lattice flexor of dimensions 4 6 4 on the selected joint
pm.flexor( type='jointLattice', dc="lattice -dv 4 6 4 -cp -dualBase true", aj=True)