12-15-2019, 03:03 AM
That's what the eventParticleCount variable is....it doesn't change until the next timestep, even if you birth particles in the Script op. So keep track of how many particles you birth, then you can iterate them like this:
Code:
for (int i = eventParticleCount; i < eventParticleCount + numNewParticles; i++)