Go to: Synopsis. Return value. MEL examples.

Synopsis

textToShelf (string $label, string $script)

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

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.

MEL examples

  textToShelf ("Sel", "select -all");
	textToShelf ("Time", "toggleUIComponentVisibility \"Time Slider\"");