import pymel.core as pm
# align the selected objects to the mid-point in x of the first select object
pm.align(x='mid',y='mid',z='mid',alignToLead=True)
#当x,y,z都是mid时候,可以完全对齐两个以上的物体,如果是none则是对齐到模型的平均位置。
import pymel.core as pm
# align the selected objects to the mid-point in x of the first select object
pm.align(x='mid',y='mid',z='mid',alignToLead=True)
#当x,y,z都是mid时候,可以完全对齐两个以上的物体,如果是none则是对齐到模型的平均位置。