scriptOp particle count on event entry
#2
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++)
  Reply


Messages In This Thread
scriptOp particle count on event entry - by Geoff - 12-14-2019, 07:15 PM
RE: scriptOp particle count on event entry - by tyFlow - 12-15-2019, 03:03 AM

Forum Jump: