Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Ramp up and down

  • Posted by Victor Nash on January 1, 2009 at 2:18 am

    just curious if anyone had an expression that could take a single value like Opacity and Ramp up from 0 to 100 and back down again but more slowly. A Variable in frames to Ramp up and a Variable in frames to Ramp down. All triggered by a Layer Marker?

    Victor Nash replied 17 years, 4 months ago 2 Members · 3 Replies
  • 3 Replies
  • Victor Nash

    January 1, 2009 at 3:28 am

    Im using this now, but this is based on the Layer’s inPoint. I’d like to be able to trigger via a Marker a FadeIn Value to 100 (with say a 15 frame FadeIn) and then Fall Off with a 50 frame FadeOut. Thanks 🙂

    FadeOut = 50;  
    tSecs = FadeOut / ( 1 / thisComp.frameDuration);

    a = linear(time, inPoint, inPoint + tSecs, 100, 0)
    a

  • Dan Ebberts

    January 1, 2009 at 4:14 am

    Something like this, I think:

    fadeIn = 15;
    fadeOut = 50;

    if (marker.numKeys > 0){
    f = thisComp.frameDuration;
    t = time – marker.key(1).time;
    t1 = fadeIn*f;
    t2 = fadeOut*f;
    Math.min(linear(t,0,t1,0,100),linear(t,t1,t2,100,0))
    }else{
    value
    }

    Dan

  • Victor Nash

    January 1, 2009 at 5:11 am

    brilliant 😉

    Happy New Year Dan..

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