Randomly Assigning shaders to n number of objects


#1

How to assign multiple shaders (eg :- 5 shaders) randomly to ‘n’ number of objects in a layer…

i am assigning randomly RGB matts to the ‘n’ (eg :- 50 or 100 or so on…)objects in layer using mel but i am not getting result.

anybody plzzzz help me…


#2

http://forums.cgsociety.org/showpost.php?p=8110868&postcount=4


#3

i am getting an error(// Error: No object matches name: ).

and i forgot to ask one more thing same shader should not assign side by side…