Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions keyframe events

  • Posted by Joe Hamilton on September 28, 2008 at 11:35 pm

    is it possible to use keyframes as events in an expression.
    I want to apply a generic effect to many layers but would like to have some control over adjusting each layer.
    For example:
    The layer scales down 20% when it hits the first keyframe.
    Doing it this way would allow me to control the value using expression controller effects but also use the keyframes to visually adjust the timing. Thanks.

    Joe Hamilton replied 17 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 29, 2008 at 2:54 pm

    I’m not sure exactly what you’re doing but this example might help. Here’s a scale expression that will decrease the scale value by 20% over a .2 second period at the first scale keyframe.

    scaleTime = .2;
    scaleFactor = .8;
    if (numKeys > 0){
    if (time > key(1).time){
    t = time – key(1).time;
    s = ease(t,0,scaleTime,1.0,scaleFactor);
    value * s
    }else{
    value
    }
    }else{
    value
    }

    Dan

  • Joe Hamilton

    October 3, 2008 at 4:35 pm

    great!
    that is what I was after.. just a way of using a keyframe to trigger things.
    key(1).time looks like the way to do it.
    cheers.

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