if (numKeys >1 && time > key(numKeys).time){
t1 = key(1).time;
t2 = key(numKeys).time;
span = t2 - t1;
delta = time - t2;
t = delta%span;
valueAtTime(t1 + t)}
else
value
Loops a mask path animation continuously from the first to the last keyframe, ideal for repetitive mask-based effects.
Great for looping animations on raster images, videos, or shapes when track mattes aren’t practical.