Week 11

Importing an Animate project into After Effects

Adobe built Animate and After Effects so they could easily be combined. As we’ve seen over the course of the semester the two software have a lot of similarities but also distinct strengths/weaknesses. Importing our Animate character animation into After Effects will allow us to create more complex camera movements, title sequences and effects.

While there is a camera feature in Animate, it isn’t as sophisticated as the one in After Effects, as it is limited to simple zooms, pans and tilts. This might be more than enough for certain situations (and even your walk cycle assignment), but familiarizing yourself with After Effects’ Camera tool early on will help you with more complex projects down the line.

Importing the Animate file in After Effects

For Adobe Animate Adobe Animate version 19.0 and beyond and After Effects version 16.0 and beyond (current version offered with Adobe license). 

  1. Make sure all your Animate layers are well organized and labeled. Get rid of any layer you don’t want to include in this version (create a copy of the file before deleting anything). Also be mindful that anything outside of the Stage will not be taken into account in After Effects.
  2. Launch Adobe After Effects.
  3. Create a new project and save it.
  4. Go to File > Import > File and select your .fla file. Notice that a new composition as well as a folder containing individuals .swf files (one for each of your .fla layers) has been added to your library.
  5. Also add any other file you might be using in the project (i.e: a the background layer you created in Illustrator. Please be aware that raster files (i.e: Photoshop, Procreate, JPG, PNG etc.) will get pixelated if zoomed in… thus the preferred vector format in this case).
  6. In the Project panel, you will notice a new composition with the name of your fla file as well as a a folder containing the individuals swf files (one for each of your .fla layers). Double click on the composition to open it (and add any layer you’d like)
  7. In order to use the camera on your layers, you must convert them to 3D: Select all of them, right-click and select 3D Layer.
  8. If you intend to use the camera to zoom onto certain part of your swf files, you will want After Effects to scale up the vector image without pixelization. In order to do so, you need to turn on the Continuously Rasterize option checkbox (the little sun-like icon) for all the .swf files you will be zooming into.

For older versions of Animate and After Effects (pre 2018)

  1. Create a folder to store all the assets you will create for this new version.
  2. Make sure all your Animate layers are well organized and labeled. Get rid of any layer you don’t want to include in this version (create a copy of the file before deleting anything).
  3. Make sure the Advanced Layers icon is turned off. If you leave it on, the SWF file won’t play in After Effects.
Advanced layer icon. Should be turned to “Off” before exporting.
  1. Next, we’ll export each element that we know we’ll want to control separately in After Effects into a separate SWF movie file.
    • Guide layers will not be exported in the SWF file, so we can temporarily turn a layer into a guide to hide it (the regular hide feature won’t work). Right-click on the layer name and select Guide. Repeat for any layer you don’t want to include in the first SWF
  2. Go to File > Export > Export Movie…
    • Name your file
    • Set the file format to SWF (PNG sequences can also work here, but since PNG is a raster format, it won’t be as scalable as SWF which is vector-based)
    • Save in the folder you created
  3. Repeat for each layer.
  4. Launch After Effects
  5. Go to File > Save As > Save As… name your file and save it in the same folder as the SWFs
  6. Go to File > Import > File… and select the SWF file(s) you just created.
  7. Let’s create a new composition with the SWF(s). Select the SWF(s) and drag and drop it/them onto the New Composition icon.
    • If you have several SWFS: In the New Composition from Selection window, make sure Single Composition is selected. You can keep the default option for the other settings.
  8. Each SWF file will appear as a layer in the Timeline (reorder them if needed).
  9. You’ll also notice that a new Composition has been added to your Project panel. You can rename it by right-clicking its name and selecting Rename (i.e: “walkAnimate”)
  10. When you press the Spacebar you should see your entire animation play on the screen

Looping a sequence in After Effects

Sometimes, you will want to loop one of the layers/animation you imported into After Effects (our 8 – frame walk cycle, for example could be looped to last for an entire minute).

First, we will have to set the Composition settings to match the total length we wish our animation to be:

  • Go to Composition > Composition Settings… 
  • Set the duration to your desired length

You’ll notice that the Timeline has changed, but the length of the files you previously imported hasn’t. To lengthen and loop them:

  • For a static layer(.png, .jpg, .psd etc.), place your cursor over the very end of the layer bar in the timeline. It should be a horizontal double ended arrow cursor. Drag to the right to extend the layer to the end of the composition.
  • For an animated layer (i.e: .swf):
    • Right-click on the layer and select Time > Enable Time Remapping
    • Place your cursor over the very end of the layer bar in the timeline.Drag to the right to extend the layer to the end of the composition.
    • Click on the Property pick whip icon (the little swirl on the right)
    • Toggle the Time Remap arrow
    • Click the Expression language menu (the little circle with the arrow in the center) and select Property > LoopOut.

Moving the background

In order to give the impression that your character is moving in space, we have to move the background (this is why you creates one that is much wider than the composition:

  1. Place your time cursor at the beginning of the animation (0:00:00:00)
  2. Toggle the background layer’s Transform menu and click on the Position stopwatch
  3. Change the X value of the background so that its left edge aligns with the left edge of the composition.
  4. Go to the end of the animation
  5. Change the X value of the background so that its right edge aligns with the right edge of the composition.

Camera in After Effects

Adobe After Effects allows you to add a Camera layer to your Compositions. This can add dynamism to your scene by using a variety of shots, zooming, panning etc.

2.5D

By default, Solid, Text and Shape layers in After Effects are 2-dimensional. This means they have an X(width) and Y(height) axis. This is also true of .swf, .png, .jpg and any other raster files you may be importing into your project. However, the camera needs 3-dimensional information in order to move properly – this means it needs an added Z (depth) axis.

Before adding a camera to your composition, you must transform all the layers you want to include into your camera-enhanced scene into 3D layers: This can be done by right-clicking on the layer and selecting 3D Layer or by toggling the box in the 3D column. While these layers aren’t exactly 3-dimensional (your characters, props, backgrounds etc. are still 2-dimensional drawings), the layers are placed into a 3-dimensional space and can be moved on the Z axis. This effect is often referred to as 2.5D (in-between 2D and 3D).

Adding a Camera layer

A Camera is a layer (just like Solids, Text and Shapes). It will be added to your Timeline. In order to add one:

  • Go to Layer > New… > Camera
  • You can change the type of camera and lens, but we’ll keep the default setting:
    • Type: One-Node Camera
    • Preset: 50mm
    • Units: Millimeters
    • Measure Film Size: Horizontally
    • Deselect Enable Depth of Field (or you might get a blurred image when zooming very close to your swf file).
    • Once you hit OK, you’ll notice that a Camera layer has been added to the Timeline.

Previewing and controlling the camera

A second/bird’s eye view of the composition is useful when positioning elements in 3-dimensional space. Let’s change the view of our Composition window:

  • Set the view layout dropdown to 2 Views – Horizontal
  • Click on the new view (on the left) and make sure 3D view dropdown is set to Top

The Camera layer has its own Animation properties. Toggle the Transform tab to see them. For now, we will focus on the first two properties:

  • Position: There is a number for each of the 3 axis, X(width), Y (height) and Z (depth). You can type in numbers, hover click and drag on them or control the position visually in the Top view.
  • Orientation: This refers to the angle of the camera. The first value can be used to tilt the camera (up – down), the second to pan it (left – right) and the third to rotate around the scene

Just like any property, you must set a first keyframe (by clicking on the stopwatch icon) in order to change them over time. For a zoom or pan, you can use regular keyframes. If you wish to “cut” from one camera position to another, use a Hold keyframe (right-click on the keyframe and select Toggle Hold Keyframe).

I am keeping these steps fairly simple for the sake of time, but this article from School of Motion is a great resource if you want to learn more about cameras in After Effects.


Saving, moving and submitting your After Effects project

When you import assets into your After Effects library, you must include all the files you used when moving or sharing your project. If you only save/submit your .aep file it won’t be able to load the .swf and .png files and will send an error message saying it can not locate them.

In order to avoid this issue, keep your work organized into a single folder, and include the entire folder in your submissions/when moving your file form one computer to another.


Final project – step 6: adding a background and applying After Effect’s camera to the walk cycle

Subject

Import your Animate animation into After Effects. Follow the same steps to import your background Illustrator file if you decide to use this software rather than a separate Animate layer. Loop your walk cycleMove the background to give the impression that your character is moving in space.Use After Effects’ Camera tool to recreate the shots outlined in your storyboard.

Format

Use the following composition settings: 24fps, width: 1920px | height: 1080px. Save your .aep file and export your animation to Quicktime (review rendering instructions on the week9 page). Upload your animation to Vimeo or Youtube.

Submission

Create a new post on your Open Lab portfolio. Your post should include a link to your Vimeo or Youtube video as well as a short description (what did you add/change from the previous version. Reflections on your process, challenges, goals etc. are also welcome).

This assignment is due next week. Submit the following files on the following platforms:

  • Blackboard: .aep file and all .swf and .ai files imported into it and a link to your Open Lab post. The easiest way to make sure you’re not forgetting any files is to compress (see instructions here) the entire folder and submitting the zip version.
  • Open Lab discussion board: Reply to the “Final Project: camera” discussion post with a link to your Open Lab post

This is part of the final project. It will be taken into account in the final grade for the project (see full grading rubric here).