Go to: Synopsis. Return value. MEL examples.

Synopsis

toolDropped [string]

toolDropped is undoable, NOT queryable, and NOT editable.

This command builds and executes the commands necessary to recreate the specified tool button. It is invoked when a tool is dropped on the shelf.

Return value

None

MEL examples

// Create move tool button and scale tool button in a new window
string $window = `window`;
columnLayout;
toolCollection;
toolButton
    -tool       moveSuperContext
    -toolImage1 moveSuperContext "move_M.png";
toolButton
    -tool       scaleSuperContext
    -toolImage1 scaleSuperContext  "scale_M.png";
showWindow $window;

// Drop select tool to the created window
toolDropped selectTool;