pymel.core.modeling.manipPivot

manipPivot(*args, **kwargs)

Changes transform component pivot used by the move/rotate/scale manipulators. In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
moveToolOri / mto int ../../../_images/create.gif
  Change move tool’s axis orientation to the specified mode. This flag is the same as using manipMoveContext -e -modeon the Move tool except that this command is undoable.
ori / o float, float, float ../../../_images/create.gif ../../../_images/query.gif
  Component pivot orientation in world-space.
oriValid / ov bool ../../../_images/query.gif
  Returns true if component pivot orientation is valid.
orientation / o float, float, float  
   
pinPivot / pin bool ../../../_images/create.gif ../../../_images/query.gif
  Pin component pivot. Selection changes will not reset the pivot position/orientation when a custom pivot is set and pinning is on.
pos / p float, float, float ../../../_images/create.gif ../../../_images/query.gif
  Component pivot position in world-space.
posValid / pv bool ../../../_images/query.gif
  Returns true if component pivot position is valid.
position / p float, float, float  
   
reset / r bool ../../../_images/create.gif
  Clear the saved component pivot position and orientation.
resetOri / ro bool ../../../_images/create.gif
  Clear the saved component pivot orientation.
resetPos / rp bool ../../../_images/create.gif
  Clear the saved component pivot position.
rotateToolOri / rto int ../../../_images/create.gif
  Change rotate tool’s axis orientation to the specified mode. This flag is the same as using manipRotateContext -e -modeon the Rotate tool except that this command is undoable.
scaleToolOri / sto int ../../../_images/create.gif
  Change scale tool’s axis orientation to the specified mode. This flag is the same as using manipScaleContext -e -modeon the Scale tool except that this command is undoable.
snapOri / so bool ../../../_images/create.gif ../../../_images/query.gif
  Snap pivot orientation. Modify pivot orientation when snapping the pivot to a component.
snapPos / sp bool ../../../_images/create.gif ../../../_images/query.gif
  Snap pivot position. Modify pivot position when snapping the pivot to a component.
valid / v bool ../../../_images/query.gif
  Returns true if component pivot position or orientation is valid. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.manipPivot

Example:

::

import pymel.core as pm

// Set tool component pivot to “1,0,0” pm.manipPivot( p=(1, 0, 0) )