-
looping a keyframe animation after setting the keyframe using a slider
I have two keyframes on the Evolution property, the second keyframe is set by the value of a slider.
This is working, but i want the keyframes to loop, and carry on beyond the second keyframe.
Whenever, and however i add loopOut() it breaks the part of the expression which sets the value of key(2) and it reverts to whatever i set it as last.
I’m sure i’m missing something fundemental here in how the loopOut can’t work with the linear() maybe?
Any help to get this looping would be appreciated!
(P.S I don’t want to precomp the layer and loop the time-remapping, would like to keep it in the Evlotion property if possible)
Here’s the expression, which works to set the second keyframe, without the loopOut()
if (numKeys > 1){
ctrl = thisComp.layer(“// controls”).effect(“Edges Animation Speed”)(“Slider”);
t1 = key(1).time;
t2 = key(2).time;
v1 = 0;
v2 = ctrl;
linear((time), t1, t2, v1, v2);
} else {
value
}
How can i loop this?
Thanks in advance.