Go to: Synopsis. Return value. Flags. MEL examples.
nameCommand [-annotation string] [-command script] [-data1 string] [-data2 string] [-data3 string] [-default boolean] [-sourceType string]
[string]
nameCommand is undoable, NOT queryable, and NOT editable.
This command creates a nameCommand object. Each nameCommand object can be connected to a hotkey. Thereafter, the nameCommand's command string will be executed whenever the hotkey is pressed (or released, as specified by the user).string | The name of the nameCommand object created |
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-annotation(-ann)
|
string
|
|||
|
||||
-command(-c)
|
script
|
|||
|
||||
-data1(-da1)
|
string
|
|||
|
||||
-data2(-da2)
|
string
|
|||
|
||||
-data3(-da3)
|
string
|
|||
|
||||
-default(-d)
|
boolean
|
|||
|
||||
-sourceType(-stp)
|
string
|
|||
|
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. |
// Create a nameCommand object. // nameCommand -ann "The Circle Tool" -c "setToolTo circleContext" circleToolNameCommand; // Now map the nameCommand to a hotkey. // hotkey -keyShortcut "F5" -altModifier -name "circleToolNameCommand";