runTimeCommand is undoable, queryable, and editable.
Create a MEL command given the specified name. Once the command is
created you can invoke it like any other MEL command. When the
command is invoked it will execute the string attached to the
In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
-exists(-ex) |
|
![create create](../gfx/create.gif) |
|
Returns true|false depending upon whether the specified object
exists. Other flags are ignored. |
|
-command(-c) |
script |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Command to be executed when runTimeCommand is invoked. |
|
-commandLanguage(-cl) |
string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
In edit or create mode, this flag allows the caller to choose a
scripting language for a command passed to the "-command" flag. If
this flag is not specified, then the callback will be assumed to be
in the language from which the runTimeCommand command was called.
In query mode, the language for this runTimeCommand is returned.
The possible values are "mel" or "python". |
|
-annotation(-ann) |
string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Description of the command. |
|
-category(-cat) |
string |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) ![edit edit](../gfx/edit.gif) |
|
Category for the command. |
|
-categoryArray(-caa) |
|
![query query](../gfx/query.gif) |
|
Return all the run time command categories. |
|
-default(-d) |
boolean |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Indicate that this run time command is a default command.
Default run time commands will not be saved to preferences. |
|
-numberOfCommands(-nc) |
|
![query query](../gfx/query.gif) |
|
Return the number of run time commands. |
|
-numberOfDefaultCommands(
-ndc) |
|
![query query](../gfx/query.gif) |
|
Return the number of default run time commands. |
|
-numberOfUserCommands(-nuc) |
|
![query query](../gfx/query.gif) |
|
Return the number of user run time commands. |
|
-commandArray(-ca) |
|
![query query](../gfx/query.gif) |
|
Returns an string array containing the names of all the run
time commands. |
|
-defaultCommandArray(-dca) |
|
![query query](../gfx/query.gif) |
|
Returns an string array containing the names of all the default
run time commands. |
|
-userCommandArray(-uca) |
|
![query query](../gfx/query.gif) |
|
Returns an string array containing the names of all the user
run time commands. |
|
-save(-s) |
|
![edit edit](../gfx/edit.gif) |
|
Save all the user run time commands. |
|
-delete(-del) |
|
![edit edit](../gfx/edit.gif) |
|
Delete the specified user run time command. |
|