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

Synopsis

waitCursor [-state boolean]

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'.

Return value

booleanTrue if the wait cursor is on.

In query mode, return type is based on queried flag.

Flags

state
Long name (short name) Argument types Properties
-state(-st) boolean createquery
Set or reset the wait cursor for the entire Maya application.

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 be used more than once in a command.

MEL examples

waitCursor -state on;
waitCursor -state off;