pymel.core.animation.flexor

flexor(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
atBones (ab) bool ../../../_images/create.gif
 
Add a flexor at bones. Flexor will be added at each of the selected bones, or at all bones in the selected skeleton if the -ts flag is also specified.
atJoints (aj) bool ../../../_images/create.gif
 
Add a flexor at joints. Flexor will be added at each of the selected joints, or at all joints in the selected skeleton if the -ts flag is specified.
deformerCommand (dc) unicode ../../../_images/create.gif
 
String representing underlying deformer command string.
list (l) bool ../../../_images/query.gif
 
List all possible types of flexors. Query mode only.
name (n) unicode ../../../_images/create.gif
 
This flag is obsolete.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
noScale (ns) bool ../../../_images/create.gif
 
Do not auto-scale the flexor to the size of the nearby geometry.
toSkeleton (ts) bool ../../../_images/create.gif
 

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 ../../../_images/create.gif
 
Specifies which type of flexor. To see list of valid types, use the “flexor -query -list” command.

Derived from mel command maya.cmds.flexor

Example:

import pymel.core as pm

import maya.cmds as cmds

# 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)

Previous topic

pymel.core.animation.findKeyframe

Next topic

pymel.core.animation.flow

Core

Core Modules

Other Modules

This Page