Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions looping comps (I give up)

  • looping comps (I give up)

    Posted by Alex Volkov on August 5, 2010 at 8:10 pm

    Hi

    I feel exhausted. I have just spent around 2 hours to try and loop my composition. I have found several tuts online how to do it, and even with this thorough tut https://forums.creativecow.net/readpost/2/944514 I can’t succed.

    Now I will explain what I have done so far:

    I have a Comp with a short animation in it, I will call it A.
    I convert that into another Comp, I will call it B.

    Now A is inside B. I go into B, select A on my timeline, press Ctrl+Alt+T to enable Time Remap. I ALT-click the watch to go into Expression mode, I paste following code “loopOut()” <– without “”s ofcourse, and I have tried many different versions of that code.
    Anyway. I go to the last frame, then 1 frame back, make a keyframe, delete the last keyframe, and nothing…

    I can’t believe that such simple feature should require such tediour workflow, and without success on my part.

    What am I doing wrong? Can someone please upload me a file so I can go inside it and see what the heck I did wrong.

    Thanks in advance

    loopOut()

    Alex Volkov replied 15 years, 9 months ago 4 Members · 10 Replies
  • 10 Replies
  • Dan Ebberts

    August 5, 2010 at 8:25 pm

    How long is comp A compared to comp B? From what you’ve described, it sounds like they might be the same length, in which case you wouldn’t see any looping. Is it possible you only want to loop part of comp A? In that case your procedure would be a little different. You’d enable time remapping, go to the end of the part you want to loop, set a keyframe there, advance one frame, set a keyframe value of zero, then delete the last keyframe (that AE added). Then add the expression.

    Dan

  • Alex Volkov

    August 5, 2010 at 8:55 pm

    No they are not the same lenght. I have even “Trimmed Comp to Work Area” inside A. This is driving me crazy…

  • Dan Ebberts

    August 5, 2010 at 9:04 pm

    Really hard to say what’s wrong without seeing. Can you post a screen shot of the time line?

    Dan

  • Alex Volkov

    August 5, 2010 at 11:08 pm

    I dont know if they will confuse you even more, but here they are

    https://www.toonhaze.com/1.png
    https://www.toonhaze.com/2.png

    1 is the animation it self inside the Comp

    2 is that same comp seen from outside, with a Loop expression on it

  • Dan Ebberts

    August 5, 2010 at 11:29 pm

    You only have 1 time remapping keyframe, so there’s nothing to loop.

    1. Turn of time remapping (so that you start over).

    2. Enable time remapping (you should see two keyframes).

    3. Move the time indicator to the time that lines up with the last keyframe inside the precomp (looks like about frame 17) and set a time remapping keyframe there (in the main comp).

    4. Move forward one frame (still in the main comp). Set the time remap value to 0 (which should create another keyframe.

    5. Delete that 2nd keyframe that AE added when you turned on time remapping.

    6. Add the loopOut() expression.

    7. Extend the length of the time remapped layer as necessary.

    That should be close.

    Dan

  • Alex Volkov

    August 6, 2010 at 12:11 am

    I love you, sir, for helping me with that problem of mine. You just saved my day, thank you so much!

    I performed this procedure on a whole new test comp that I created, and after realizing what caused this problem, I have done the tweaks to my main anim. Few things that caused the problem:

    1) The major first part of my comp was trimmed down
    1a) In stead of having the animation in the middle of the next-part comp, I have moved it to the beginning, and trimmed down the comp
    2) I applied everything in that exact order, you suggested, which seems crucial for it to work
    3) I test-deleted the 0-value keyframe after my last keyframe to see if it works without it, and it does!

    Whoa I have had no idea that making a simple loop can become a rocket science. Do I have to go through this craziness every time I need to make a loop, or are there any shortcuts for this to achieve? Like for instance making a template for Time Remap parameter with LoopOut() expression automatically attached to it?

  • Dan Ebberts

    August 6, 2010 at 12:22 am

    I think it would be a pretty simple script, but that’s another story…

    Dan

  • John Cuevas

    August 6, 2010 at 1:08 pm

    There is another alternative, but you would have to render out your precomp, if you later decide to change something, you would have to re-render.

    Render your footage and import it, now right click on the footage and select interpret footage. On the Main Options tab at the bottom you will find a loop option, just set it to loop as long as you need it too.

    This method works well if you know that your footage is finalized and you don’t need to make any changes.

    Johnny Cuevas, Editor
    http://www.thinkck.com

  • Andy George

    August 6, 2010 at 10:19 pm

    This might be the type of script your looking for-

    https://aescripts.com/the-loopmaker/

    -Andy George
    Senior Editor
    http://www.chiselindustries.com

  • Alex Volkov

    August 7, 2010 at 9:59 am

    Thanks alot 🙂 that is exactly what I need

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