Align or spread objects along X Y and Z axis.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
alignToLead / atl | bool | ![]() |
|
|
|||
coordinateSystem / cs | PyNode | ![]() |
|
Defines the X, Y, and Z coordinates. Default is the world coordinates Flag 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
# 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)