PDA

View Full Version : Pleaz Help


naza0222
08-24-2011, 12:05 AM
Hi I Wondering If There Is A Script That Can Conect A Texture To All Color Of All Shaders In My Scene

paradigm3d
08-24-2011, 03:27 AM
Hi I Wondering If There Is A Script That Can Conect A Texture To All Color Of All Shaders In My Scene

put the name of your texture in hte $txt
select all the shaders in the hypershade
then execute the script in the script editor.

string $txt = "name of your texture";
string $shdrSel[] = `ls -sl`;
for ($selection in $shdrSel)
{
connectAttr ($txt + ".outColor") ($selection + ".color");
}

naza0222
08-24-2011, 04:46 PM
thank you paradigm3d thats what im looking for.

CGTalk Moderation
08-24-2011, 04:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.