Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions not trails…but kinda like trails…

  • not trails…but kinda like trails…

    Posted by Jerry Fines on January 17, 2009 at 8:38 pm

    I have a small solid moving around on my comp and want it to leave trails (little dots), but unlike most trail effects, I don’t want the trailing objects to move with the path of the leader object, I just want them to stay in position and slowly fade away. It’s a crass analogy, but basically I’d like the leader object to ‘poop’ out pellets. Would anyone know how I could do this efficiently? TIA.

    Filip Vandueren replied 17 years, 4 months ago 2 Members · 3 Replies
  • 3 Replies
  • Filip Vandueren

    January 17, 2009 at 10:54 pm
    for opacity:
    
    frequency=8; // dots per second
    startIndex=1; // layerindex of the first dot-layer
    
    time >= ((index-startIndex)/frequency) ? 100 : 0 ;
    
    
    for position:
    
    frequency=8; // dots per second
    startIndex=1; // layerindex of the first dot-layer
    
    leader=thisComp.layer("solid");
    
    leader.transform.position.valueAtTime((index-startIndex)/frequency)
    

    You could simply use a particle system without gravity or velocity, and tie the emitter’s position to the solid.

    If you really need multiple layers, one for each pellet, try the expressions below, apply to one pellet layer, then duplicate the layer as much needed

  • Jerry Fines

    January 18, 2009 at 2:26 am

    wow, that worked really nicely, thanks! Would you know how to do the second part of my problem expression? Where I would like the pellet/dot to fade out over time after it has been dropped?

    -Jerry

  • Filip Vandueren

    January 18, 2009 at 10:56 pm
    frequency=8; // dots per second
    startIndex=1; // layerindex of the first dot-layer
    
    FadeOut= 1.2;
    
    birthTime=(index-startIndex)/frequency;
    birthTime>=time ? 0 : linear(time,birthTime,birthTime+FadeOut,100,0);

    This works.

    You’re probably best off creating a Null-layer with some expression-control sliders, and linking to them for all the variables like frequency, FadeOut time etc. because that makes it easier to tweak.

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