Go to: Synopsis. Return value. Flags. Python examples.
waitCursor([state=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
waitCursor is undoable, queryable, and NOT editable.
This command sets/resets a wait cursor for the entire Maya application. This works as a stack, such that for each waitCursor -state on command executed there should be a matching waitCursor -state off command pending. Warning: If a script fails that has turned the wait cursor on, the wait cursor may be left on. You need to turn it off manually from the command line by entering and executing the command 'waitCursor -state off'.boolean | True if the wait cursor is on. |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
state(st)
|
boolean
|
|||
|
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. |
import maya.cmds as cmds cmds.waitCursor( state=True ) cmds.waitCursor( state=False )