// =========================================================================== // 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: // artAttrNComponentValues // // Description: // Initialize the option values. // // Input Arguments: // // Return Value: // None. // global string $gArtAttrNComponentCurrentAttr = ""; global proc artNComponentPaintValues( string $artCommand, string $currTool ) // // Paint NComponentFile Weights tool values. // { // Common Attribute Paint UI. artAttrCommonValues( $artCommand, $currTool ); } // ======================================================= // Main callback procedure for Paint Selecion tool. // ======================================================= global proc artAttrNComponentValues( string $toolName ) { global string $gArtAttrNComponentCurrentAttr; 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 = "PaintNComponentWeightsTool"; string $parent = (`toolPropertyWindow -q -location` + "|artAttrNComponent"); setParent $parent; if ("" != $gArtAttrNComponentCurrentAttr) { if (! `exists nComponentAttributeToPaint_melToUI` ) { source "artAttrNComponentProperties.mel"; } string $selectedItem = nComponentAttributeToPaint_melToUI($gArtAttrNComponentCurrentAttr); optionMenuGrp -e -value $selectedItem NComponentPaintAttrMenu; } toolPropertySetCommon $toolName $icon $helpTag; // Brush frameLayout values. artisanBrushValues( $artCommand, $currTool ); // NComponentFile Paint Weights frameLayout values. artNComponentPaintValues( $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 artAttrNComponent; }