global proc miLightExportFlagsNew(string $attr) { attrNavigationControlGrp -label (getPluginResource("Mayatomr", "kLightShader")) lightShaderCtrl; attrNavigationControlGrp -label (getPluginResource("Mayatomr", "kPhotonEmitter")) photonEmitterCtrl; miLightExportFlagsReplace($attr); } global proc miLightExportFlagsReplace(string $attr) { string $node; string $buffer[]; tokenize($attr, ".", $buffer); $node = (size($buffer) > 0) ? $buffer[0] : ""; attrNavigationControlGrp -edit -attribute ($node + ".miLightShader" ) lightShaderCtrl; attrNavigationControlGrp -edit -attribute ($node + ".miPhotonEmitter" ) photonEmitterCtrl; } global proc AEmentalrayLightShader(string $node) { editorTemplate -beginLayout (getPluginResource("Mayatomr", "kCustomShaders")) -cl false; editorTemplate -label (getPluginResource("Mayatomr", "kSuppressAllMayaShaders")) -ac "miExportMrLight"; editorTemplate -callCustom "miLightExportFlagsNew" "miLightExportFlagsReplace" "message"; editorTemplate -endLayout; editorTemplate -s "miLightShader"; editorTemplate -s "miPhotonEmitter"; }