dschnee Posted February 15, 2003 Share Posted February 15, 2003 Ok, I have a box that is plugged into a duplicate sop, and I set my number of copies to X number(s). What I'm trying to do is based on each box's copy number $CY, have it randomly choose from 4 different shaders. I'm outputing copygroups, but can't figure out how to take the group information and have it look up 1 of 4 different shaders to use... So each time a copy is made it will look up 1 of 4 shaders to use and maintain. Thanks for the help... --- Plan9 has showed me the power of the Switch Shop, so using the copy stamp attributes I was able to get the results I was looking for... any other ideas? Quote Link to comment Share on other sites More sharing options...
stevenong Posted February 15, 2003 Share Posted February 15, 2003 Hi there, Stamping with the Copy SOP is it. Grouping & assigning the shaders to the groups will work too but imagine grouping 100 boxes into 25 groups & assigning a different shader to each group. Cheers! steven Quote Link to comment Share on other sites More sharing options...
dschnee Posted February 15, 2003 Author Share Posted February 15, 2003 right, well I was going for Inefficiency, thanks for the advice! -d Quote Link to comment Share on other sites More sharing options...
Wolfwood Posted February 16, 2003 Share Posted February 16, 2003 If you don't want to use groups you could add this to your SHOP sop. v_plastic`param("shaderNum",0)` Then in your copy sop, turn on stamping with var1 = "shaderNum" and Param1 = "floor(rand($CY)*4)" jim. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.