This command changes some of the settings of the xform manip, to control its appearance. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
showUnits (su) | bool | ||
If set to true, the xform manip displays current units; otherwise, the manip hides them. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
suppress (s) | bool | ||
|
|||
useRotatePivot (urp) | bool | ||
|
|||
worldSpace (ws) | bool | ||
If set to true, the xform manip is always in world space. If false, the manip is in object space. (Note: when multiple objects are selected the manip is always in world space, no matter what this is set to) |
Derived from mel command maya.cmds.setXformManip
Example:
import pymel.core as pm
# makes manip disappear
pm.setXformManip( suppress=True )
# set manip to object space
pm.setXformManip( worldSpace=False )
# returns false
pm.setXformManip( q=True, ws=True )
# Result: False #