-
Looping an “if” expression
Hi,
I have two keyframes, one of which is controlled by a slider. That works perfectly.
But I want the animation to loop back and forth, similar to the loopOut(“pingpong”) expression. Obviously if I put this at the end of the expression, it nullifies everything else.
Does anyone know how I could get by this?
if (numKeys > 1){
t1 = key(1).time;
t2 = key(2).time;
v1 = thisComp.layer("Slider").effect("value")("Slider");
v2 = 0;
linear(time,t1,t2,v1,v2);
}else
valueThank you!