Your Ad Here

Go to: Synopsis. Flags. Return value. 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 editable.

This command changes some of the settings of the xform manip, to control its appearance.

Flags

showUnits, suppress, useRotatePivot, worldSpace
Long name (short name) [argument types] Properties
suppress(s) boolean queryedit
If set to true, the xform manip is suppressed and therefore not visible or usable.

In query mode, this flag needs a value.

worldSpace(ws) boolean queryedit
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)

In query mode, this flag needs a value.

useRotatePivot(urp) boolean queryedit
If set to true, the xform manip uses the rotate pivot; otherwise, the manip uses the bounding-box center. Defaults false.

In query mode, this flag needs a value.

showUnits(su) boolean queryedit
If set to true, the xform manip displays current units; otherwise, the manip hides them.

In query mode, this flag needs a value.


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.

Return value

None

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 )

  

Return to Autodesk Index


Your Ad Here