-
Damping a rapidly changing value
Hello,
I’m looking for a way to damp the decay of a rapidly changing value. Specifically, I have a particle system generating explosive bursts, and I have linked the birth rate to the intensity of a light to illuminate my scene. The particle birth rate has a modified wiggle expression to randomise the bursts. But my problem is that as soon as the birth rate drops back to 0, the light goes off, but I’d like it to fade off as the particles fly past it for a second or so.
I’ve taken a look through a few of Dan Ebberts’ motionscripts, and found some nice decay expressions using Math.exp, but I don’t really know how to trigger this slow decay whenever a large, rapid value increase-then-decrease has just occurred.
Any thoughts, anyone?
Thanks!
-Paul
