Go to: Synopsis. Return value. MEL examples.

Synopsis

scriptToShelf (string $label, string $script, int $isMEL)

Creates a shelf item on the currently active shelf that will execute the given script of the given type.

Return value

None

Arguments

Variable Name Variable Type Description
$labelstringThe label to give the new shelf item.
$scriptstringThe script to be executed when the shelf item is clicked.
$isMELintwhether the script is of type MEL or Python

MEL examples

  scriptToShelf ("Sel", "select -all", true);