Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Change individual keyframes with Slider Control

  • Change individual keyframes with Slider Control

    Posted by Lars Leguijt on August 14, 2018 at 7:01 am

    Hello everyone!

    I’m making a Lower Thirds animation, and I want to make some controllers so it’s easy to change the lower third animation.

    The problem I struggle with, is that I have 4 keyframes, and I want to control 2 of them by a Slider Control. I have searched for over 4 hours, but cant find the answer. So maybe one of you can help me ????

    So, I want to control the 2 selected (blue) keyframes with a slider control. But I dont know how.

    Lars Leguijt replied 7 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andreas Brand

    August 14, 2018 at 10:22 am

    Hello Lars

    You can do this with three different linear-expressions depending where the time-indicator is.

    Try this code.
    Hope it helps.

    slider1 = PICK-WHIP TO SLIDER 1;
    slider2 = PICK-WHIP TO SLIDER 2;

    if(time<=key(2).time){
    newValue = linear(time, key(1).time, key(2).time, key(1).value, slider1);
    }else if(time<=key(3).time){
    newValue = linear(time, key(2).time, key(3).time, slider1, slider2);
    }else{
    newValue = linear(time, key(3).time, key(4).time, slider2, key(4).value);
    }

    newValue

  • Lars Leguijt

    August 14, 2018 at 10:54 am

    Thankyou!

    This works great!

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