-
loopOut on keyframes AND modifying them with the linear() expression
Sorry to bringing this one up again, as there have been similar problems all over. I just can’t figure out a solution for my specific problem.
The problem is how to add a loopOut expression to a set of keyframes while having a linear expression modifying one of the keyframes.
So.
I have this keyframed setup for a shape line trim with all three properties set to loopOut().
Start 50 > 75 > 50
End 50 > 25 > 50
Offset -180 > 180
I have to create about 200 trim line animations and since the repeater doesn’t allow for time offsets, I am doing it via layers and keyframes – now I want to easily modify or randomize the line length by changing the middle keyframe values via the linear expression and still be able to place a loop on these keyframes.
In the attached screenshot I linked the middle key to a slider for easier experimentation (the first keyframes are just to create a break) The loopOut should be added to the following expression (or if you have an overall better idea, let me know).
first = key(2).value;
second = key(3).value;
newValue = effect("Length 25-80")("Slider");
linear(value, first, second, first, newValue);(Would be all so easy if we were able to offset and randomize a shape repeater by time 😉
Thanx a ton for your thoughts!