Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions loopOut dropping last frame of sub-comp

  • loopOut dropping last frame of sub-comp

    Posted by Greg Neumayer on May 3, 2013 at 7:46 pm

    I’m having issues with loopOut. I’ve applied it in it’s default mode to “Bird”, which is a 8 frame flapping sequence. I can see in the time remap that it’s cycling through the 8 frames, but for some reason the last frame always comes up blank. Even if I change the second keyframe to be “6”, the last frame is still blank. So, my bird disappears for a frame at the end of every loop. What am I not understanding here?

    Thanks!

    Antifreeze Design
    https://www.antifreezedesign.com

    Ferenc Van der velde replied 5 years, 5 months ago 11 Members · 16 Replies
  • 16 Replies
  • Kevin Camp

    May 3, 2013 at 8:04 pm

    whenever you time remap a comp, it always ends up with the last frame as blank… what i normally do after adding time remapping to a nested comp is go one frame before the last frame and add a keyframe, then delete the original last key frame.

    i think if you simply move your current last keyframe (with value of 6) to frame 6, it should work.

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Dan Ebberts

    May 3, 2013 at 8:31 pm

    I think what you need to do:

    • enable time remapping
    • set a keyframe at the last frame of your sequence
    • move forward one frame and set a keyframe with value of 0
    • delete the last keyframe that AE created when you turned time remapping on.

    Something like that.

    Dan

  • Greg Neumayer

    August 22, 2013 at 5:21 pm

    What a goofy pain. My solution was to not change any of the (2 automatically created) keyframes in my outer comp (the one applying Time Remap), but to

    1. Inside my precomp, add an additional frame to my precomp that matched the first frame of the looping sequence.
    2. Apply Time Remap to the outside of my comp, with the expression: loopOut(type = “cycle”, numKeyframes = 0)
    3. Extend the duration, now that it can be expanded to infinity.

    Honestly, I still don’t understand why that would affect the frame that was “blank”, but hey, I’ve got a deadline to meet! I’ll sharpen my axe later!

    Antifreeze Design
    https://www.antifreezedesign.com

  • Roei Tzoref

    December 24, 2013 at 2:11 pm

    Dan Explained it well. I will elaborate:
    whenever you use loop expression on a TR layer/precomp,
    you should bear in mind that Time remapping creates the last keyframe one frame after
    the last out frame of sequence.

    it does this to because after effects assumes its an interlaced movie
    so it creates a “freeze” at the last frame for the second field…

    so if you loop it as is – you would get a blank keyframe.
    basically if you just go to that last keyframe you can see its blank.
    (even without looping)

    most people override this by creating a keyframe one frame
    before the last TR keyframe, and then delete that last TR keyframe.
    That would create a loop but as loop cycle expression does it duplicates
    the keyframes over and over and thus skips a frame every loop
    if you want a loop that doesn’t skip a frame
    (just as if you would duplicate the precomp and place it one after the other)
    you should duplicate the first frame after the last one and then use the expression.

    this is the recipe:
    1. Set a keyframe one frame before the last TR key frame.
    2. Copy the first key frame over the last TR key frame.
    3. Set the loop expression you desire

  • Juan Huarte

    May 9, 2015 at 7:48 pm

    IM Sorry, but i have the same problem and that doesn’t work for me. If I do that, then the new keyframe i created turns blank…

  • Roei Tzoref

    May 9, 2015 at 8:54 pm

    describe your situation specifically and what exactly are you doing.
    if you can then with screenshots or maybe provide the project file (no need for footage)

  • Juan Huarte

    May 9, 2015 at 9:23 pm

    Well, i do what you say, but then the keyframe that i made, the one before the last, turns blank. If erase the last one, It works sometimes, but then once i loop it, it turns blank! It’s driving me crazy, i don’t know what else to try.

  • Roei Tzoref

    May 9, 2015 at 10:08 pm

    take a look at this project file:
    https://www.dropbox.com/s/gow5oaf6zd6mfsn/loop.aep?dl=0

    it has a precomp with movement from the left to the right.
    in the master comp there’s the expression.

    see if your setup is the same.

  • Juan Huarte

    May 11, 2015 at 12:45 am

    Thanks for the help, I’ll check it out. For some reason, the problem fixed itself once i rendered it. Weird.

  • Clifford Sonnentag

    September 25, 2015 at 9:19 pm

    Adobe needs to make this better and easier,

    I’m so stuck on this one too. I have plenty of looping comps working, but this one I made with shapes is stuck. No matter what I do the thing will not stop glitching off the last frame.

    I’ve tried
    loopOut("cycle",0)
    loopOut("cycle",1)
    with extra keyframes at the end in both the comp and in the comps time remap.

    I’ve tried extending shortening, changing the clip duration, using this code:
    loopSec = framesToTime(timeToFrames(thisComp.duration)+1);
    linear(time,0,loopSec, key(1), key(2))

    No matter what I do Adobe stabs me with a knife, I want to throw my computer out this 37 floor window right now.

    Thanks for the help Dan I found your other post addressing a work-around to what I would consider a bug in Adobe’s After Effects.

  • As I recall, you can avoid the last frame glitch by (once you turn on time remapping) adding a keyframe one frame before the last keyframe, and setting the value of the last keyframe to zero.

    Dan

  • ref: https://forums.creativecow.net/thread/227/22953

    Now this thing won’t
    loopOutDuration("cycle",2);
    without going nutz when it loops because of the last keyframe glitch fix mentioned above. ARGGGGGGGGGG OMG why is something so simple made to be soooooooooooo dificult. Can anyone please tell me what i am doing wrong and how to fix this, I’ve lost about 2 days on this stupid loop issue over the course of this project. It has a mind of its own. It just does what it wants when it wants to.

    had to do a workaround with a keyframe loop. created a keyframe at 2 seconds in after doing the other workaround. So 2 workarounds later and this code it finally works:
    loopOut("cycle",2);

    Adobe ..|.

Page 1 of 2

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