View all expressions
Transformation

Keyframe Value Control with Sliders

This After Effects expression allows you to control keyframe values dynamically using sliders, preserving Graph Editor easing for smooth animations.

Contributed by:

u/Able_Asparagus1376


key1Value = effect("Key 1")("Slider"); // Slider for first keyframe value
key2Value = effect("Key 2")("Slider"); // Slider for second keyframe value
key1Time = key(1).time;key2Time = key(2).time;// Preserve Graph Editor's easing
if (time <= key1Time){
key1Value;}
else if
(time >= key2Time){
key2Value;}
else{
originalValue = valueAtTime(time);
linear(originalValue, valueAtTime(key1Time), valueAtTime(key2Time), key1Value, key2Value);}

Keyframe Value Control with Sliders

Practical use case

Perfect for projects where you need to adjust start and end values of animations on the fly without manually changing keyframes.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image