Delete particles based on framerange

   2559   1   0
User Avatar
Member
10 posts
Joined: Nov. 2016
Offline
Hi everyone !

I have a basic spray simulation (whitewater)of a creature that jumps then dives.
In the submerged phase, the behavior of the spray becomes chaotic (like without gravity).

I would like to remove all particles that are born during this period (100 frames).
Maybe based on the age of emission? I thought of delete sop (my coding is more than beginner) but i don't know which expression to use…

Thanks for those who will help me

Ps: sorry for language mistakes
User Avatar
Member
337 posts
Joined: Dec. 2014
Offline
Something like this in a point wrangle after your pop sim will allow you to delete points based on a normalized age ramp, but be aware they're still spawning, in other words they'll still pop into existence once they reach the ramp threshold value. You might add another ramp to control pscale so they scale up at a designate point so they don't just appear out of nowhere

f@normage = @age / @life;
float c = chramp('age_ramp',@normage);
@Cd = c;

if (@Cd < 0.1){
removepoint(0, @ptnum);
}
  • Quick Links