pymel.core.language.waitCursor

waitCursor(*args, **kwargs)

This command sets/resets a wait cursor for the entire Maya application. This works as a stack, such that for each waitCursor -state oncommand executed there should be a matching waitCursor -state offcommand 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:
Long name (short name) Argument Types Properties
state (st) bool ../../../_images/create.gif ../../../_images/query.gif
 

Set or reset the wait cursor for the entire Maya application.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.waitCursor

Example:

import pymel.core as pm

import maya.cmds as cmds

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

Previous topic

pymel.core.language.stackTrace

Next topic

pymel.core.language.Catch

Core

Core Modules

Other Modules

This Page