Align or spread objects along X Y and Z axis.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
alignToLead (atl) | bool | ||
|
|||
coordinateSystem (cs) | PyNode | ||
Defines the X, Y, and Z coordinates. Default is the world coordinatesFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
xAxis (x) | unicode | ||
|
|||
yAxis (y) | unicode | ||
|
|||
zAxis (z) | unicode | ||
|
Derived from mel command maya.cmds.align
Example:
import pymel.core as pm
import maya.cmds as cmds
# align the selected objects to their average mid-point in x
pm.align(x='mid')
# align the selected objects to the mid-point in x of the first select object
pm.align(x='mid', alignToLead=True)