// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // // Creation Date: 17 October 2000 // // // // // // // textToShelf (string $label, string $script) // // // None. // // // Creates a shelf item on the currently active shelf that will // execute the given MEL script. // // // string $label The label to give the new shelf item. // string $script The script to be executed when the shelf item is clicked. // // // textToShelf ("Sel", "select -all"); // textToShelf ("Time", "toggleUIComponentVisibility \"Time Slider\""); // // global proc textToShelf (string $label, string $script) { scriptToShelf($label, $script, true); }