After Effects Animated Gif

At our February Web Professionals and Adobe User Group meeting, someone asked about the fundamentals of working with Adobe After Effects. I thought it might be appropriate to create a simple animated gif (perhaps a snowstorm – since we have had so much snow this winter). I wanted to put together this documentation prior to the next meeting and use it as a starting point for discussion at the meeting. I also recently reviewed a lynda.com tutorial on this subject by my colleague and friend Tom Green. That course is Web motion for beginners: create a preloader. I recommend readers view that course if they want to learn more than I provide in this tutorial. Ok, let’s get started building a snowstorm… I am using After Effects CC for this project. When I launch it, I am presented with the following screen. The biggest issue people have with any software new to them is where to start. As you can see, there are many options, but not a lot of guidance for beginners. Yes, you can always click on the image to enlarge it. In this case, the smaller image captures my sentiments when I first used this product – ok, now what do I do?

After Effects initial view

The answer is that you first need a composition. From the menu, select Composition > New composition… You next need to specify the details of your composition. As you can see below, I named the composition (students in my classes know that I recommend always changing the default names to something meaningful). You may need to revisit your efforts at some point in the future and you are helping remind yourself what the various objects are in your project. I set the width and height (I also unchecked the “lock aspect ratio” box) and frame rate. I went with the default of square pixels (the other choices seem more appropriate for media other than an animated gif.

New composition dialog

Now, we need to place the particles (ahem, snow) on something. I selected Layer > New > Solid… from the menu. I named the layer and made certain it fit the entire composition.

Creating new solid

You should now see something like the screen capture below in After Effects. I created a checkpoint file (SnowStormStep01.aep) for those who want to start from this point.

First step in creating the snowstorm

With the layer selected, I next chose Effect > Simulation > CC Snowfall from the menu. The initial default effects are shown below. Of course, we can make any changes we want to these values. I encourage you to experiment with many of these values to see the changes to the snowfall.

Initial Effect values

I modified a few of these to obtain the results I sought. Your mileage may (and should) vary. After tweaking the flakes, size, wind, opacity and a few other values, my animation looked like the following screen capture (this is just one point in the timeline). Ok, maybe it looks more like a sleet storm than a snowstorm. My point is to get you used to working with the tool. Obviously, you can make a lot more changes once your level of comfort with this tool improves. I created another checkpoint file for those who want to verify they have something similar. [SnowStormStep02.aep]

Resulting snowstorm at one point in timeline

Scrub the playhead in the timeline to verify you have the desired effect (in my case, I was looking to create a snow storm at night as I watched from a window with limited light outside). Once you are satisfied, you need to render the composition. From the menu, select Composition > Add to Render Queue

We next need to specify the type of output. I clicked on the word lossless and then selected PNG sequence from the selection list and then hit Ok. I numbered these steps in the screen capture below.

Necessary changes to output module

The output to… link will now show a name similar to Snowstorm_[#####].png (I chose to place these in a folder called sequence). A unique number will be applied to each image (recall there are 10 images per second). Once these changes have been made, one should click the Render button to generate the images.

Render queue ready to generate images

Now that the sequence of images has been output, it is time to open these images in Photoshop. From the Photoshop menu, select File > Open and point to the location of the image sequence. Make certain that you check the box indicating it is an image sequence (and open the first image in the sequence).

Open the image sequence in Photoshop

Make certain you match the frame rate with the rate you used in After Effects (in this case, 10 frames per second).

Set the frame rate to 10 FPS

If everything imported successfully, you should see the sequence in the timeline. You should be able to view the animation by clicking on the Play icon.

Timeline in Photoshop

Next, select File > Save for Web… and make certain the output is set to gif. Also set the loop value to forever. I chose to only output the first few seconds of this animation (but it will loop anyway).

Loop the animated gif

The resulting animated gif is shown below. Yes, we can also optimize the animation and make a number of improvements. That would be the subject of other weblog posts. I just wanted readers to see how one could create a snowstorm in After Effects and turn it into an animated gif. As always, I am interested in your comments. I encourage you to review the lynda.com lesson by Tom Green mentioned above as it greatly expands on this overview.

Snowstorm

If you wish to examine the actual files, I provide a zip archive which contains the animated gif, the PSD, the PNG sequence, and the AE files. Simply extract the contents and modify. By the way, this is a loop – can you tell where the last frame ends and the first frame starts again?

25 thoughts on “After Effects Animated Gif”

  1. Mark,

    That was a very straight forward and informative tutorial. I watch and read many. Most of them are useful, but in the process waste a lot of my time with things I should already understand. I was quickly able to read through, sort out the things I already knew, gather new information and then create what I needed to. I love that you put red boxes around the important fields.

    Thanks,

  2. It does not make gif file more than 500 frame can any one please help me I have more than 1600 png sequence file I want to convert it to GIF file?

    Thanks

  3. Really great, simple, straightforward tutorial that told me exactly what I needed to know. Thanks a lot!

  4. I like the way you explain everything, Mark. Just did my first gif file from after effect. Thank you so much.

  5. Hi, thanks for the excellent explanation. But I have a question, what if it says that the file is too heavy and it can’t be exported?
    The gif only lasts 6 seconds.
    Thank you

  6. Hi. Although I have never encountered the error you mention, I would recommend trying to reduce the file size first (perhaps you can optimize any images you pull in to After Effects). Also, try reducing the amount of time for the animation to play. See if you then are able to save the animation.
    Best always,
    Mark

  7. Photoshop does not have an image sequence butong when opening anything. CS6 discontinued it?

  8. I am using the latest version of Photoshop and I see the image sequence checkbox when I select File > Open. Perhaps I do not understand your comment?
    Best always,
    Mark

  9. Thank you for this.I encountered a problem with the 500 frame limit in photoshop after I rendered from after effects. I see that you can lower the frame rate to 10 fps and itt works like a charm. Thanks again!

  10. Just FYI for anyone wondering. You can’t make an animated gif with over 200 images. Mine was 500 🙁 Photoshop shows an error for having too many images open.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social media & sharing icons powered by UltimatelySocial