pymel.core.general.toggleAxis

toggleAxis(*args, **kwargs)

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:
Long name (short name) Argument Types Properties
origin (o) bool ../../../_images/create.gif ../../../_images/query.gif
 
Turns display of the axis at the origin of the ground plane on or off.
view (v) bool ../../../_images/create.gif ../../../_images/query.gif
 

Turns display of the axis at the bottom left of each view on or off. (Obsolete - refer to the headsUpDisplay command)Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.toggleAxis

Example:

import pymel.core as pm

import maya.cmds as cmds

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

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

# Returns true if the axis at the origin is on.
pm.toggleAxis( q=True, o=True )
# Result: False #

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

Previous topic

pymel.core.general.toggle

Next topic

pymel.core.general.toolDropped

Core

Core Modules

Other Modules

This Page