This After Effects Expression Will Transform Your Animations

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • Dynamic Layer Spread Animation in After Effects - Easy Expression Tutorial
    Have you ever needed your layers in After Effects to spread dynamically, perfectly aligned, and oscillate smoothly over time? If your answer is yes, this tutorial is exactly what you need.
    In this video, I'll show you how to use a simple expression to create a stunning oscillating layer animation. No manual adjustments or keyframe headaches-just smooth, perfectly synchronized motion with minimal effort.
    Expression:
    var spreadRange = 300;
    var loopDuration = 5;
    var totalLayers = thisComp.numLayers;
    var layerIndex = index;
    var timeControl = (time % loopDuration) / loopDuration;
    var spread = Math.sin(timeControl * Math.PI * 2) * spreadRange;
    var centerIndex = (totalLayers + 1) / 2;
    var relativeIndex = layerIndex - centerIndex;
    var step = spread / (totalLayers - 1);
    var offset = relativeIndex * step;
    [value[0] + offset, value[1]];
    What You'll Learn:
    How to create dynamic animations with expressions in After Effects
    Automating layer spread and oscillation with just a few lines of code
    How to customize spread distance (spreadRange) and loop duration (loopDuration) for complete control
    This expression calculates the total number of layers, aligns them dynamically from the center, and applies a smooth sine wave oscillation to create a beautiful motion effect. It's perfect for adding depth and style to your animations, saving you tons of time.
    Feel free to tweak the spreadRange and loopDuration values to match your creative vision.
    Let me know how you use this technique in your projects. Don't forget to like, subscribe, and share for more After Effects tips and tricks. See you in the next tutorial.
    #AfterEffectsTutorial #MotionGraphics #DynamicAnimations #AETips #LayerAnimation #OscillationEffect #AfterEffectsExpressions #SmoothAnimation #MotionDesign

ความคิดเห็น • 1