UG1005 Posted October 29, 2022 Share Posted October 29, 2022 Hello! Suppose I have a particle that keeps generating every frame from an object. When the particle is generated, it has an attribute of some kind, and that attribute is 1 at the frame when the particle is generated. Is there any way to add 1 to that attribute every frame after it occurs? For example, suppose that the PARTICLE occurs at frame 15. Five frames later, at frame 20, that attribute would be 6. I would appreciate it if someone could tell me how to do this. Quote Link to comment Share on other sites More sharing options...
Sepu Posted October 30, 2022 Share Posted October 30, 2022 You can use the particle age attribute and divide it by the time increment. i@myattrib = floor(@age/@Timeinc); Quote Link to comment Share on other sites More sharing options...
UG1005 Posted October 30, 2022 Author Share Posted October 30, 2022 6 hours ago, Sepu said: You can use the particle age attribute and divide it by the time increment. i@myattrib = floor(@age/@Timeinc); Thank you so much!! It worked! 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.