revelationsr Posted July 25, 2017 Share Posted July 25, 2017 (edited) Hi there. I have an effect that triggers on a frame. This effect will happen on each primitive. I have an attribute on the primitive that says which frame the effect triggers. My problem is that I dont know how to change that attribute for each Primitive. Right now I have something like this. @effectTrigger = 10; The effect triggers for all primitives on frame 10. What I would like to know how to do is something like this. @effectTigger(PRIM number 0) = 10; @effectTigger(PRIM number 1) = 13; @effectTigger(PRIM number 2) = 23; @effectTigger(PRIM number 3) = 48; Cheers Edited July 25, 2017 by revelationsr Quote Link to comment Share on other sites More sharing options...
Atom Posted July 25, 2017 Share Posted July 25, 2017 (edited) You can always use an AttributeWrangle in Primitive mode to set specific values. // Set default value first. @effectTigger = 10; // Override special cases. if (@primnum == 1) {@effectTigger = 13;} if (@primnum == 2) {@effectTigger = 23;} if (@primnum == 3) {@effectTigger = 48;} Edited July 25, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
revelationsr Posted July 25, 2017 Author Share Posted July 25, 2017 Awesome man! perfect! Cheers for that 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.