global proc pfxrenderer() { if ( `window -exists pfxrenderer_window` ) { deleteUI -window pfxrenderer_window; } int $windowWidth = 128; int $buttonHeight = 22; int $windowHeight = 40;//set to button count string $gozbuddyWindow = `window -title "PFX Buddy" -rtf true -wh $windowWidth $windowHeight -menuBar false pfxrenderer_window`; columnLayout -adjustableColumn true -columnAttach "both" 10; separator -style "none" -w $windowWidth -h 6; ///////////////////////////Window Padding button -l "Save First (good idea)" -c "file -save;" -height $buttonHeight -align "center"; separator -style "none" -w $windowWidth -h 2; button -l "PFX Render" -c "pfxRenderer;" -height $buttonHeight -align "center"; separator -style "none" -w $windowWidth -h 2; button -l "Post Cleanup: Delete Unused Materials" -c "hyperShadePanelMenuCommand(\"hyperShadePanel1\", \"deleteUnusedNodes\");" -height $buttonHeight -align "center"; ///////////////////////////Window Padding separator -style "none" -w $windowWidth -h 6; setParent ..; showWindow pfxrenderer_window; } global proc pfxRenderer() { string $typeTest[] = `ls -type "stroke"`; string $existingMeshGroups[] = `ls "*MeshGroup*"`; select -r $typeTest; doPaintEffectsToPoly( 1,0,0,0,100000); select -d; RedoPreviousRender; string $renderTimePFXGrpy[] = `ls "*MeshGroup*"`; select -r $renderTimePFXGrpy; select -d $existingMeshGroups; delete; }