-
Substitute keyframe values with values from point controls or sliders (but …
keep the keyframe curves)
I have an expression that lets me substitute the value of one keyframe with values from a point control or slider. This is the expression, which I originally found here (all the way at the end of the page, thanks Dan Ebbert!):
var newValue=thisComp.layer(“Tief-Blau Farbfläche 1”).effect(“newValue”)(“ADBE Point Control-0001”);
var firstValue = key(1).value;
var lastValue = key(2).value;
if (firstValue[0] < lastValue[0])
x = linear(value[0],firstValue[0],lastValue[0],firstValue[0],newValue[0])
else
x = linear(value[0],lastValue[0],firstValue[0],newValue[0],firstValue[0]);
if (firstValue[1] < lastValue[1])
y = linear(value[1],firstValue[1],lastValue[1],firstValue[1],newValue[1])
else
y = linear(value[1],lastValue[1],firstValue[1],newValue[1],firstValue[1]);
[x,y]
————————————————————————————————————-
What I’m looking for is an expression that lets me do the same for a variable number of n keyframes. I guess it could be done with a “for -> each-loop”, but my own humble expression-whiz doesn’t cut it and so I’m stuck. Does anybody have an idea?community.adobe.com
Dynamic keyframe value using expression?
Hi, I'll try my best to explain myself here. I currently have an animation of a Shape Layer using two keyframes controlling the width of the the shape from 0 px to 100 px. Now what I want to do … Continue reading
Sorry, there were no replies found.