Emit particles per frame


#1

Hi guys,

I’m trying to create a fireworks-effect, without the launch of the rocket; just the explosion. So I want my emitter to emit a certain amount of particles at just one frame. I tried the following:

(Expression for ‘rate’ attribute)
if (emitter1.currentTime == 1)
emitter1.rate = 1200; //to emit 50 particles at frame 1 (because FPS = 24)
else
emitter1.rate = 0;

However, it doesn’t emit a single particle at frame 1… How should I fix this?

Cheers,

Felix


#2

Why not just key the rate of the emitter?


#3

Yeah I could’ve done that too. But I found the solution: I gave maya 2 frames to calculate the emission instead of 1, that solved the problem. Not sure what the theory behind it is, but it works!