Go to: Synopsis. Flags. Return value. Related. Python examples.
flexor(
[objects]
, [atBones=boolean], [atJoints=boolean], [deformerCommand=string], [list=boolean], [noScale=boolean], [toSkeleton=boolean], [type=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
flexor is undoable, queryable, and editable.
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.
atBones, atJoints, deformerCommand, list, noScale, toSkeleton, type
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
string[] (the names of the new flexor nodes)
cluster, deformer, lattice, percent, sculpt, wire, wrinkle
import maya.cmds as cmds
# Create a sculpt object with a max displacement of 4.0 at the
# selected joint
cmds.flexor( typ='sculpt', dc="sculpt -mxd 4.0", aj=True )
# Create a lattice flexor at all joints on the skeleton:
cmds.flexor( type='jointLattice', aj=True, ts=True )
# Create a lattice flexor of dimensions 4 6 4 on the selected joint
cmds.flexor( type='jointLattice', dc="lattice -dv 4 6 4 -cp -dualBase true", aj=True)