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 Turns display of the axis at the origin of the ground plane on or off. view / v bool Turns display of the axis at the bottom left of each view on or off. (Obsolete - refer to the headsUpDisplay command) Flag 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 # 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()