ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Change individual keyframes with Slider Control

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Lars Leguijt
Change individual keyframes with Slider Control
on Aug 14, 2018 at 7:01:52 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.


Return to posts index

Andreas Brand
Re: Change individual keyframes with Slider Control
on Aug 14, 2018 at 10:22:33 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


Return to posts index

Lars Leguijt
Re: Change individual keyframes with Slider Control
on Aug 14, 2018 at 10:54:25 am

Thankyou!

This works great!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]