// =========================================================================== // 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. // =========================================================================== // // Description: // Toggles the display of texture nodes in the AE. // global proc performNucleusDisplayTextureNodes() { optionVar -intValue nucleusShowTextureNodes (!`optionVar -query nucleusShowTextureNodes`); global string $gAEFocusNode; if( $gAEFocusNode != "" ){ updateAE $gAEFocusNode; } global string $gNClothDisplayMenu; if( $gNClothDisplayMenu != "" && `menu -exists $gNClothDisplayMenu` ){ string $oldParent = `setParent -menu -query`; setParent -menu $gNClothDisplayMenu; menuItem -edit -checkBox `optionVar -query nucleusShowTextureNodes` textureNodesItem; setParent -menu $oldParent; } }