// =========================================================================== // 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. // =========================================================================== // // provided at the time of installation or download, or which otherwise accompanies // // Procedures specifying the UI layout for lrPhysicPhotonShader // in Maya's Attribute Editor // global proc AEilrPhysicPhotonShaderNormalNew(string $attr) { attrNavigationControlGrp -l "Bump Mapping" -dragCallback "AEdragCallback" AEilrPhysicPhotonShaderNormalControl; AEilrPhysicPhotonShaderNormalReplace $attr; } global proc AEilrPhysicPhotonShaderNormalReplace(string $attr) { attrNavigationControlGrp -edit -at $attr AEilrPhysicPhotonShaderNormalControl; } global proc AEilrPhysicPhotonShaderTemplate(string $node) { editorTemplate -beginScrollLayout; editorTemplate -beginLayout "Surface Attributes" -collapse false; editorTemplate -label "Diffuse" -adc "diffuse"; editorTemplate -label "Specular" -adc "specular"; editorTemplate -label "Transparency" -adc "transparency"; editorTemplate -label "Refractive Index" -adc "ior"; editorTemplate -callCustom "AEilrPhysicPhotonShaderNormalNew" "AEilrPhysicPhotonShaderNormalReplace" "normalCamera"; editorTemplate -s "normalCamera"; editorTemplate -endLayout; // include/call base class/node attributes AEdependNodeTemplate $node; // suppressed attributes editorTemplate -s "version"; editorTemplate -addExtraControls; editorTemplate -endScrollLayout; }