View all expressions
Transformation

Loop Mask Animation Expression

Loops a mask path animation continuously from the first to the last keyframe, ideal for repetitive mask-based effects.


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

Loop Mask Animation Expression

Practical use case

Great for looping animations on raster images, videos, or shapes when track mattes aren’t practical.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image