Go to: Synopsis. Return value. Related. Flags. MEL examples.
evalDeferred [-evaluateNext] [-list] [-lowPriority] [-lowestPriority]
[script]
evalDeferred is undoable, NOT queryable, and NOT editable.
This command takes the string it is given and evaluates it
during the next available idle time. It is useful for attaching
commands to controls that can change or delete the control.
eval, evalEcho, scriptJob
evaluateNext, list, lowPriority, lowestPriority
Long name (short name) |
Argument types |
Properties |
|
-evaluateNext(-en)
|
|
|
|
Specified that the command to be executed should be ran with the
highest priority, ideally queued up next.
|
|
-list(-ls)
|
|
|
|
Return a list of the command strings that are currently pending on
the idle queue. By default, it will return the list of commands for all
priorities. The -lowestPriority and -lowPriority can be used to
restrict the list of commands to a given priority level.
|
|
-lowPriority(-low)
|
|
|
|
Specified that the command to be executed should be deferred with the
low priority. That is, it will be executed whenever Maya is idle.
|
|
-lowestPriority(-lp)
|
|
|
|
Specified that the command to be executed should be deferred with the
lowest priority. That is, it will be executed when no other idle
events are scheduled.
|
|
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.
|
window;
columnLayout;
string $button = `button -label "Delete Me"`;
button -edit -command ("evalDeferred \"deleteUI " + $button + "\"") $button;
showWindow;