Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling Emitter

  • Controlling Emitter

    Posted by Gerard Bowden on June 18, 2013 at 1:50 pm

    I have connected a Particular emitter (position) to a null and keyframed the null to move around the screen. Now I am trying to figure out how to create an expression where the emitter will stop emitting one frame after the null stops moving.

    Any help will be much appreciated.

    Gerard Bowden replied 12 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Darby Edelen

    June 18, 2013 at 2:47 pm

    Here’s the slightly easier but less robust way, applied to Particles/sec:


    max = 1000;
    min = 0;
    l = thisComp.layer("MyNullsName");
    s = l.transform.position.speedAtTime(time - thisComp.frameDuration);
    linear(s, min, max, 0, value);

    ‘max’ is the speed at which the emitter emits at its keyframed value and ‘min’ is the speed at which the emitter stops emitting (0 is stopped).

    Here’s a more robust way that will allow for parenting of the Null that controls the emission:


    max = 1000;
    min = 0;
    l = thisComp.layer("MyNullsName");
    s = length(l.toWorld(l.anchorPoint) - l.toWorld(l.anchorPoint, time - thisComp.frameDuration)) / thisComp.frameDuration;
    linear(s, min, max, 0, value);

    Darby Edelen

  • Gerard Bowden

    June 18, 2013 at 3:35 pm

    Thank you so much, this saved me a lot of time. Cheers

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy