Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Looping Multiple Layers with Different Lengths

  • Looping Multiple Layers with Different Lengths

    Posted by Eran Amir on December 31, 2013 at 3:46 pm

    Hi Everybody,

    I have a comp with around 100 layers of different lengths,
    and I want to have all the layers loop during the entire comp duration.
    I am familiar with the loop expression, but haven’t found a way to apply it to multiple layers with different lengths without having to manually correct the time remapping keyframes for each layer.

    Does anyone have an idea how I can do this?

    Thanks!
    Eran.

    Eran Amir replied 12 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Walter Soyka

    December 31, 2013 at 9:11 pm

    [Eran Amir] “I am familiar with the loop expression, but haven’t found a way to apply it to multiple layers with different lengths without having to manually correct the time remapping keyframes for each layer.”

    Instead of using loopOut, try the following expression for time-remapping:

    // loop via time-remapping without adjusting default keyframes
    if (numKeys < 2) value else {
    timeInFrames = timeToFrames(key(1).value);
    timeOutFrames = timeToFrames(key(2).value);
    localTimeFrames = timeToFrames(time - inPoint);
    framesToTime((localTimeFrames % (timeOutFrames-timeInFrames)) + timeInFrames);
    }

    Walter Soyka
    Principal & Designer at Keen Live
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    RenderBreak Blog – What I’m thinking when my workstation’s thinking
    Creative Cow Forum Host: Live & Stage Events

  • Eran Amir

    January 1, 2014 at 5:01 pm

    Thanks! Both techniques work great!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy