// =========================================================================== // 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: March 17, 1997 // // Description: // This script sets the values for the specified scaleKey context // within the tool property sheet. // // Input Arguments: // string $context The name of the actual context being edited // // Return Value: // None. // global proc scaleKeyValues (string $context) { string $parent = `toolPropertyWindow -query -location`; setParent $parent; string $currentOption = `scaleKeyCtx -query -type $context`; int $option = 1; if ($currentOption == "manip") $option = 2; int $scaleSelectedKeys = `scaleKeyCtx -query -ssk $context`; radioButtonGrp -edit -onCommand1 ("scaleKeyCtx -edit -type rect " + $context) -onCommand2 ("scaleKeyCtx -edit -type manip " + $context) -select $option scaleKeyOption; checkBoxGrp -edit -onCommand1 ("scaleKeyCtx -edit -ssk on " + $context) -offCommand1 ("scaleKeyCtx -edit -ssk off " + $context) -value1 $scaleSelectedKeys scaleKeyScaleSelectedKeysGrp; string $helpTag = ""; toolPropertySetCommon $context "scale_M.png" $helpTag; toolPropertySelect "scaleKey"; }