PDA

View Full Version : Using a condition node on multiple objects


j00ey
03-17-2005, 10:23 AM
Hi
I'm trying to make a shading network where an object changes colour if its Y translation is greater than 0. I can do it easy enough with the one object by attaching the translateY to a condition node, but I'm going to be doing this with a large grid of animated objects, so I'm trying to avoid making 1 shader per object. Is this a MEL problem or can I do it with a shading network?
Thanks in advance
J

cpan
03-17-2005, 11:01 AM
with a single Condition node, I think you`ll have to plug a switch in the first slot and then add objects and values to the switch. To automate this yo`ll have to write a simple mel that makes the connections between the objects and the switch.

cheers

j00ey
03-17-2005, 11:22 AM
thanks for that yashu. Can you maybe give me a hint as to how to write the MEL to connect the switch?

CGTalk Moderation
03-17-2005, 11:22 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.