// Expression n.9 stagger.Loop.Control
explainer:
bit.ly/3YO5xNp
This expression staggers the start of each duplicated layer’s animation to create a smooth cascading effect. It’s perfect for animations that loop in a sequence, with each layer starting after the previous one at a set interval. With a fixed delay, this setup keeps everything consistent without manual adjustments.
Apply on Time Remap Property:
var delayInFrames = 5; // Fixed delay between layers in frames
var frameDuration = thisComp.frameDuration;
var delayBetweenLayers = delayInFrames * frameDuration;
var start = key(1).time;
var end = key(numKeys).time;
var loopDuration = end - start;
var offsetTime = (index - 1) * delayBetweenLayers;
var loopedTime = ((time - offsetTime) % loopDuration);
if (loopedTime < 0) {
loopedTime += loopDuration;
}
start + loopedTime;
More Resources:
YouTube:
bit.ly/3AcQQeT
Working Files & Scripts:
bit.ly/3ZJmGu2
#AfterEffects #AnimationExpressions #MotionGra...