Skip to main content
YamRam
Participating Frequently
Mar 22, 2019 9:18 PM UTC
Question

Cannot loop a precomp

Hi. I am trying to loop a simple 5-second animation, and after 25 tutorials and 10 hours, nothing has worked.

I've precomposed it, brought that into a new comp, and did the whole time-remapping, with the Expression set to loopOut .

I've tried 5 different variations of the "cycle" expression

I've tried various Remap techniques. You name it, I've tried it.

I export it to Encoder, and final  mp4 - does not loop, it just plays once.

What am I doing wrong?

I'm very new to AE. Thanks a lot.

This topic is closed to new replies. Start a new post to keep the conversation going.

11 replies

Participant
Sep 14, 2024 10:10 AM UTC

You cannot edit the precomp before looping it, such as cutting it. Otherwise, the remap won't work correctly, and then the loop won't work either. Make sure to initially create the composition of the desired length, from which you make the precomp for the loop.

 

 

Translate
Ro Hackett
Inspiring
Dec 31, 2020 10:56 PM UTC

Hey funny enough you can do what you are looking for with loop embedded in the file using the animation timeline in photoshop... watch this vid...

https://youtu.be/bq14Wf7R1WE

 

 

Translate
Roei Tzoref
Legend
Mar 22, 2019 10:29 PM UTC

it seems by your description to ”export to mp4 and play only once” that you expect your video file to play in a loop in the player... that is - play over and over even though it’s one animation for beginning to end of the duration of your video. if you want your video file to play in A loop you need to set the loop option in the player you are using. This is not related to using timeremapping in Ae to make an animation play over and over in one video file from start to finish.

Translate
Community Expert
Mar 23, 2019 1:01 AM UTC

You can loop a pre-comp or nested comp in AE by enabling time remapping using the keyboard shortcut

Doing that will extend the out point of the layer to the end of the composition. The Time Remapping keyframes will be displayed. Press k to move to the last keyframe. Now press Ctrl/Cmnd + left arrow to move back one frame and set a new time remapping keyframe. Hold down the Alt/Option key and click the Time Remapping stopwatch to add a new keyframe at the start of the last frame of the comp. Press the k key again to move to the last keyframe and delete that keyframe. You can do this in the timeline or carefully select the keyframe and delete it. Now, hold down Alt/Option and click the Time Remapping stopwatch or use the Animation menu to add a new expression and simply type loopOut().

This will loop the composition. If the first frame of the original comp and the last frame are identical you will have a perfectly seamless loop.

If you are expecting a rendered video to loop there is nothing you can add to the metadata in any video format from After Effects or the Adobe Media Encoder that will force any media player to continuously loop a video.

Translate
YamRam
YamRamAuthor
Participating Frequently
Mar 25, 2019 2:07 PM UTC

Hi. I've tried that many times,,but it still doesn't loop after it's rendered.

The AE file has the LoopOut function the time remapping - I've followed these steps, as well as similar tutorials. Not sure how to export a simple gif-type render that loops.

Do you do that in Encoder somewhere? Thanks a lot

Translate
Martin_Ritter
Legend
Mar 22, 2019 9:46 PM UTC

How long is the composition, you put the loop on? Could it be it just playing once, because it has only 5 secs in length?

For further investigation, a screenshot of your project including the composition in question with the expression-text visible would be helpful.

*Martin

Translate