dobin Posted September 8, 2012 Share Posted September 8, 2012 I have a bunch of static particles spawn at the first frame. I'm using an animated bounding sphere to put those particles into a group over time. How can I make pscale attribute grow from 0 to 1 for 5 frames from the moment when particles enter that group? I can't use AGE or LIFE attribute since all particles are born at the same time (the first frame in this case). Quote Link to comment Share on other sites More sharing options...
eetu Posted September 9, 2012 Share Posted September 9, 2012 Here's a quick and dirty idea: After your Group POP, put down an Attribute pop with, say, time_in attribute name, your inside_bounding_sphere group as the source group, and $TIME_IN + 1 as the value. Every frame a particle is inside the bounds, its attribute value is increased by one. If it leaves the bounds, the value stays at where it had accumulated to. ee_inside_counter.hip Quote Link to comment Share on other sites More sharing options...
dobin Posted September 9, 2012 Author Share Posted September 9, 2012 Thank you very much for your replay, eetu. That's a neat trick but what if the particles always stay in that group once they get there? How can I stop that counter 5 frames after its start? Quote Link to comment Share on other sites More sharing options...
dobin Posted September 9, 2012 Author Share Posted September 9, 2012 ah, I got it...using another attribute pop after yours with expression- smooth($ATTR, 1, 5) thanks again, eetu! 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.