davidyannick Posted August 29, 2020 Share Posted August 29, 2020 In this example is there a way to affect random color to each balls emitted ? Thanks balls_vellum.hiplc Quote Link to comment Share on other sites More sharing options...
curv.u Posted August 29, 2020 Share Posted August 29, 2020 Hi, you can use "Vellum Patch Name" attribute in vellumsource node to identify each iteration, then out of the dopnet (after vellumpostprocess) use a color SOP set to Random From Attribute: patchname. Patchname is a point attribute. Is that the result you wanted? Quote Link to comment Share on other sites More sharing options...
davidyannick Posted August 29, 2020 Author Share Posted August 29, 2020 10 hours ago, curv.u said: Hi, you can use "Vellum Patch Name" attribute in vellumsource node to identify each iteration, then out of the dopnet (after vellumpostprocess) use a color SOP set to Random From Attribute: patchname. Patchname is a point attribute. Is that the result you wanted? thanks but no, Ii'd like each ball to have a different color Quote Link to comment Share on other sites More sharing options...
curv.u Posted August 29, 2020 Share Posted August 29, 2020 oh yes, of course you should make patchname as unique identifier, so in vellumsource node add $OS_$F for example. The result will be "node_name"_"frame_number" ( = vellumsource_1 if you're on first frame). Check on the Spreadsheet to see the newly created names: your goal should be to have a different name for each frame a ball is emitted, that gives you the dissimilarity useful for the random function. Quote Link to comment Share on other sites More sharing options...
curv.u Posted August 29, 2020 Share Posted August 29, 2020 Plus, make sure to apply color on points. Patchname is a point attribute, so color must go on points. I see you're applying it to detail, if you want to do that you should promote the attribute first. Quote Link to comment Share on other sites More sharing options...
davidyannick Posted August 29, 2020 Author Share Posted August 29, 2020 5 minutes ago, curv.u said: Plus, make sure to apply color on points. Patchname is a point attribute, so color must go on points. I see you're applying it to detail, if you want to do that you should promote the attribute first. ok thanks for your help 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.