PDA

View Full Version : Connecting a Texture to multiple materials?


alphatron
03-06-2002, 11:16 AM
Greetings.. I have an Environment Ball texture that I would like to connect to the Reflected Color of all my materials. Is there a quick and easy way of doing this? Or will I have to manually go through each texture?

Thanks!

Lyr
03-06-2002, 11:36 AM
the single, double and triple shading switch nodes are what you need.

ed_gross
03-08-2002, 08:56 AM
It's a MEl thing. Let's just say your envBall was called, hmmm, let's say "envBall". Select all of your intended materials and use this script:

$sel = `ls -sl`;
$size = size($sel);
for ($i = 0;$i < $size;$i ++)
{
connectAttr ("envBall.outColor") ($sel[$i] + ".color");
}

CGTalk Moderation
01-13-2006, 02:00 AM
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.