Jump to content

growing attribute after particles enter a group?


dobin

Recommended Posts

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).

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...