Your Ad Here

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

Synopsis

toggleAxis([origin=boolean], [view=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

toggleAxis is undoable, queryable, and editable.

Toggles the state of the display axis. Note: the display of the axis in the bottom left corner has been rendered obsolete by the headsUpDisplay command.

Flags

origin, view
Long name (short name) [argument types] Properties
origin(o) boolean createquery
Turns display of the axis at the origin of the ground plane on or off.

In query mode, this flag needs a value.

view(v) boolean createquery
Turns display of the axis at the bottom left of each view on or off. (Obsolete - refer to the headsUpDisplay command)

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


boolean if in the query mode, otherwise none.

Python examples

import maya.cmds as cmds

# Turns origin axis on
cmds.toggleAxis( o=True )

# Turns origin axis off.
cmds.toggleAxis( o=False )

# Returns true if the axis at the origin is on.
cmds.toggleAxis( q=True, o=True )

# Toggles the display of the axis
cmds.toggleAxis()

  

Return to Autodesk Index


Your Ad Here