Go to: Synopsis. Return value. Flags. Python examples.
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 NOT 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.
boolean | if in the query mode, otherwise none. |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
origin(o)
|
boolean
|
![]() ![]() |
||
|
||||
view(v)
|
boolean
|
![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
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()