// =========================================================================== // 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. // =========================================================================== // // greasePencil: has no values // global proc greasePencilValues ( string $toolName ) { string $parent = `toolPropertyWindow -q -location`; setParent $parent; checkBoxGrp -edit -changeCommand1 ("greasePencilCtx -edit -autoCreateFrames #1 " + $toolName) -value1 `greasePencilCtx -query -autoCreateFrames $toolName` greasePencilAutoCreateFrames; // Get the current tool // string $currentTool = `currentCtx`; // If we can't find the icon then use the null string to // blank the picture altogether. // string $xpmName = ""; // // If it's a simple tool then just ask it what its icon is. // if ( `contextInfo -q -exists $currentTool` ) $xpmName =`contextInfo -q -i1 $currentTool`; string $helpTag = "GreasePencil_toolbar"; toolPropertySetCommon $toolName $xpmName $helpTag; toolPropertySelect "greasePencil"; // A non-standard setup: // The grease pencil floating window contains tools and prefs // rather than the options window. We force the floating // window to update here updateGreasePencilPalette(); }