limiting particle numbers

   4911   3   1
User Avatar
Member
16 posts
Joined: 7月 2005
Offline
'evening


im looking to emmit particles (sourcePOP), but only til the total number of particles reaches a limit. then wait til some particles die to birth some more.
i've tried impulse and/or const activations with expression
npoints(“/part/popnet1/interact”)<=100
<- this is my limit

but my source keeps birthing
anyone know or have ideas?
ta
ben
User Avatar
Member
9 posts
Joined: 7月 2005
Offline
This might be simplifying too much but what about

Impulse Activation = 1
Impulse Birth Rate = 100 - $NPART
Const. Activation = 0

J. Price
User Avatar
Member
9 posts
Joined: 7月 2005
Offline
If you want to use a constant birth rate instead of impulse you could do

Impulse Act. = 0
Const. Act = 1
Const. Birth Rate = (100-$NPART)*($FPS)

If you want to vary the amount of particles so its not always 100 you could set Const. Birth Rate to (100-$NPART)*($FPS)*rand($F), which will generate different amounts of particles each frame, but it will keep your total particles from going above 100.

J. Price
User Avatar
Member
16 posts
Joined: 7月 2005
Offline
ta
  • Quick Links