pymel.core.modeling.setXformManip

setXformManip(*args, **kwargs)

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.

Flags:

Long Name / Short Name Argument Types Properties
showUnits / su bool ../../../_images/query.gif
  If set to true, the xform manip displays current units; otherwise, the manip hides them.
suppress / s bool ../../../_images/query.gif
  If set to true, the xform manip is suppressed and therefore not visible or usable.
useRotatePivot / urp bool ../../../_images/query.gif
  If set to true, the xform manip uses the rotate pivot; otherwise, the manip uses the bounding-box center. Defaults false.
worldSpace / ws bool ../../../_images/query.gif
  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 have multiple arguments, passed either as a tuple or a list.

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 #