-
Looping range of keyframes set times, then complete following keyframes
Hi, I’m still wrapping my head around the basics of expressions and loops and I’m trying to work out if there is a way that I can create an expression where I can loop two intial position keyframes for a set amount (let’s say 5 loops), then once the loops are completed, continue to the next set of keyframes.
Sorry if this is sort of vague. Below is an expression I’ve found elsewhere before that I thought I could try to modify to some degree, but I’m still having a bit of difficulty
var loops = 2; // loop it two times
var range = key(numKeys).time - key(2).time; // length of our range
(time > key(1).time + range * loops) ? transform.position : loopOut("cycle",0);