// =========================================================================== // 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: December 2005 // // Description: // Update UI values from context // // // Procedure Name: // artAttrCacheFileValues // // Description: // Initialize the option values. // // Input Arguments: // // Return Value: // None. // global string $artCacheFileCurrentNode = ""; global proc artCachePaintValues( string $artCommand, string $currTool ) // // Paint CacheFile Weights tool values. // { // Fill in the popMenu and set the current selection. artAttrCacheFileMenu( $artCommand ); // Common Attribute Paint UI. artAttrCommonValues( $artCommand, $currTool ); // Set the paintable node to the first one found. artAttrSetPaintableNode(); } // ======================================================= // Main callback procedure for Paint Selecion tool. // ======================================================= global proc artAttrCacheValues( string $toolName ) { source "artisanCallback.mel"; source "artisanValues.mel"; source "artAttrValues.mel"; string $artCommand = "artAttrCtx"; string $currContext = `currentCtx`; string $currTool = `contextInfo -c $currContext`; // Provide a different icon for different attribute tools. string $icon = "paintBlendshape.png"; string $helpTag = "PaintCacheWeightsTool"; string $parent = (`toolPropertyWindow -q -location` + "|artAttrCache"); setParent $parent; toolPropertySetCommon $toolName $icon $helpTag; // Brush frameLayout values. artisanBrushValues( $artCommand, $currTool ); // CacheFile Paint Weights frameLayout values. artCachePaintValues( $artCommand, $currTool ); // Stroke frameLayout values. artisanStrokeValues( $artCommand, $currTool ); // Stylus Pressure frameLayout values. artisanPressureValues( $artCommand, $currTool ); // Attribute Maps frameLayout values. artisanAttrMapValues( $artCommand, $currTool ); // Display frameLayout values. artisanDisplayValues( $artCommand, $currTool ); toolPropertySelect artAttrCache; }