Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

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.

Return value

None

In query mode, return type is based on queried flag.

Flags

showUnits, suppress, useRotatePivot, worldSpace
Long name (short name) Argument types Properties
suppress(s) boolean query
If set to true, the xform manip is suppressed and therefore not visible or usable.
worldSpace(ws) boolean query
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)
useRotatePivot(urp) boolean query
If set to true, the xform manip uses the rotate pivot; otherwise, the manip uses the bounding-box center. Defaults false.
showUnits(su) boolean query
If set to true, the xform manip displays current units; otherwise, the manip hides them.

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.

Python examples

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 )