// PAINTING SELECTION v1.0 // Created by Roy Nieterau (06-04-2009) // This automaticly color overrides the selected objects. // This version does override the object itself not it's shape. // And because shape color override overrides the override of the objects override // it might not work if you've already override the objects shape. // But this is, for me, not really an issue. // // INSTALL AND RUN: // Place the script in your scripts folder, source it, and run it with RN_paintItNow; // // HOW TO USE: // - Start the interface by running RN_paintItNow; // - Select all objects your want to color override // - Use the interface to click on the desired color // - DONE! // // Hope you enjoy this. For any tips and questions mail me at: // Roy_Nieterau@hotmail.com /* Creators Guide 6 is Blue = Right Hand Side 13 is Red = Left Hand Side 17 is Yellow = Main Body Features 14 is Green = Facial Features */ // The actual Painting Process global proc RN_paintItNow_process(int $ColorChoice) { string $selection[]=`ls -sl`; int $selsize= size($selection); if ($selsize <= 0) {warning ("No objects were selected");} else{ int $attributeSize = "0"; // Color Remove if ($ColorChoice == -1) { do { setAttr ($selection[$attributeSize]+".overrideEnabled") 0; $attributeSize = $attributeSize + 1;} while ($attributeSize<$selsize); print ($selsize+" objects had their color override removed.\n"); } // Assign Color else { do { setAttr ($selection[$attributeSize]+".overrideEnabled") 1; setAttr ($selection[$attributeSize]+".overrideColor") ($ColorChoice); $attributeSize = $attributeSize + 1;} while ($attributeSize<$selsize); print ($selsize+" objects were painted color number "+$ColorChoice+".\n"); } } } global proc RN_paintItNow() { if (`window -q -ex paintOverrideUI`) deleteUI paintOverrideUI; window -rtf 1 -mnb 0 -mxb 0 -title "RN Color" paintOverrideUI; columnLayout; button -w 100 -bgc 1 0 0 -c ("RN_paintItNow_process(13)") -label "Right"; button -w 100 -bgc 0 0 1 -c ("RN_paintItNow_process(6)") -label "Left"; button -w 100 -bgc 1 1 0 -c ("RN_paintItNow_process(17)") -label "Body"; button -w 100 -bgc 0 1 0 -c ("RN_paintItNow_process(14)") -label "Facial"; button -w 100 -c ("RN_paintItNow_process(-1)") -label "Delete Color"; setParent..; showWindow paintOverrideUI; }