Go to: Synopsis. Return value. Flags. Python examples.
setXformManip([showUnits=boolean], [suppress=boolean], [useRotatePivot=boolean], [worldSpace=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
setXformManip is undoable, queryable, and NOT editable.
This command changes some of the settings of the xform manip,
to control its appearance.
None
In query mode, return type is based on queried flag.
showUnits, suppress, useRotatePivot, worldSpace
Long name (short name) |
Argument types |
Properties |
|
showUnits(su)
|
boolean
|
|
|
If set to true, the xform manip displays current units;
otherwise, the manip hides them.
|
|
suppress(s)
|
boolean
|
|
|
If set to true, the xform manip is suppressed and therefore
not visible or usable.
|
|
useRotatePivot(urp)
|
boolean
|
|
|
If set to true, the xform manip uses the rotate pivot;
otherwise, the manip uses the bounding-box center. Defaults false.
|
|
worldSpace(ws)
|
boolean
|
|
|
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)
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
# makes manip disappear
cmds.setXformManip( suppress=True )
# set manip to object space
cmds.setXformManip( worldSpace=False )
# returns false
cmds.setXformManip( q=True, ws=True )