ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

loopOut dropping last frame of sub-comp

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Greg Neumayer
loopOut dropping last frame of sub-comp
on May 3, 2013 at 7:46:13 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
http://www.antifreezedesign.com


Return to posts index

Kevin Camp
Re: loopOut dropping last frame of sub-comp
on May 3, 2013 at 8:04:03 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


Return to posts index

Dan Ebberts
Re: loopOut dropping last frame of sub-comp
on May 3, 2013 at 8:31:04 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



Return to posts index


Greg Neumayer
Re: loopOut dropping last frame of sub-comp
on Aug 22, 2013 at 5:21:26 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
http://www.antifreezedesign.com


Return to posts index

roei tzoref
Re: loopOut dropping last frame of sub-comp
on Dec 24, 2013 at 2:11:23 pm
Last Edited By roei tzoref on Dec 25, 2013 at 8:41:46 am

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



Return to posts index

Juan Huarte
Re: loopOut dropping last frame of sub-comp
on May 9, 2015 at 7:48:10 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...


Return to posts index


roei tzoref
Re: loopOut dropping last frame of sub-comp
on May 9, 2015 at 8:54:22 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)


Return to posts index

Juan Huarte
Re: loopOut dropping last frame of sub-comp
on May 9, 2015 at 9:23:08 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.


Return to posts index

roei tzoref
Re: loopOut dropping last frame of sub-comp
on May 9, 2015 at 10:08: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.


Return to posts index

Juan Huarte
Re: loopOut dropping last frame of sub-comp
on May 11, 2015 at 12:45:51 am

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


Return to posts index

Clifford Sonnentag
Re: loopOut dropping last frame of sub-comp
on Sep 25, 2015 at 9:19:51 pm
Last Edited By Clifford Sonnentag on Sep 25, 2015 at 11:24:08 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 ..|.


    Return to posts index

    Maarten Visser
    Re: loopOut dropping last frame of sub-comp
    on Jan 19, 2017 at 11:23:39 pm

    Are we really near CC 2017 version of the powerfull AE compositing software without a precomp loop function?

    I've tried all suggestions and nothing seems to work for me.
    Before i go nuts and burn away a couple of days on this issue i duplicate the footage inside my comp mannually for my own sanity...
    Maybe i'll try later again.

    Thanks for the suggestions everyone.

    Maarten


    Return to posts index

    Maarten Visser
    Re: loopOut dropping last frame of sub-comp
    on Jan 19, 2017 at 11:34:17 pm

    found something of a working solution.

    tried one last time and activated the collapse transformations (asterisk like symbol on the left of the layermodes) and this works for me in conjunction with time remap and the previously mentioned loopOut expression (loopOut(type = "cycle", numKeyframes = 0)

    hope this helps all who nearly lost their sanity like me.

    Maarten


    Return to posts index

    Angela Gao
    Re: loopOut dropping last frame of sub-comp
    on Mar 5, 2017 at 5:27:30 am

    Oh my GOD I made an account here just to reply to this post, thank you!
    The loopOut expression didn't work for me despite all the keyframe shifting but turning on collapse transformations with the expression did the trick.


    Return to posts index

    Erik Bartos
    Re: loopOut dropping last frame of sub-comp
    on Jul 5, 2017 at 8:56:26 am

    I am sorry but if adobe coders doesn't know how to write simple sequence looping why they want it from us?
    Its also software for animation right?
    even flash has easy made looping - but who use flash?

    shame on adobe... shame😠😠


    Return to posts index

    << PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
    © 2017 CreativeCOW.net All Rights Reserved
    [TOP]