Your Ad Here

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

Synopsis

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

Flags

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

In query mode, this flag needs a value.


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.

Return value


True if the wait cursor is on.

Python examples

import maya.cmds as cmds

cmds.waitCursor( state=True )
cmds.waitCursor( state=False )

  

Return to Autodesk Index


Your Ad Here