Illustrator to After Effects: A Roller Coaster Ride
Overview:
The goal of this tutorial is to demonstrate a specific motion graphics workflow using Illustrator and After Effects.
This tutorial walks through the steps of importing Adobe Illustrator-created motion path and artwork into After Effects and setting up a looping animation.
Time to complete tutorial is approximately 30 minutes.
Click here to download the finished project. (1MB ZIP file)
Technical Details:
The following techniques are covered:
- Importing Illustrator art as a composition for use in After Effects (AE)
- Using an Illustrator path as a motion path in AE
- Adjusting time length of the motion path by modifying the key frames in AE
- Adjusting the anchor point of the object to be animated in AE
- Orientating the animated object to the motion path in AE
- Set up Time Remapping and an Expression to loop the animation in AE
Software:
Adobe After Effects CS6 and Adobe Illustrator CS6
Step 1 – The project
The project files and techniques documented here create a looping animation of a roller coaster car following a track as seen in the above video. Although the video does not loop, the animation set up in After Effects is set to loop with Time Remapping and an Expression.
Step 2 – Assets
Layers panel from rollercoaster.ai |
Let’s first look at our assets that make up our animation. We will start with one Illustrator file named rollercoaster.ai that can be downloaded here. This document has a dimension of 1280 x 720 and contains four layers:
- background (the background art)
- track (the art of the roller coaster track the car appears to follow)
- car (the art of the car, the object that animates with the motion path)
- motion path (the path used inside After Effects to apply the motion)
Screen cap of importing rollercoaster.ai into After Effects |
After Effects imports the file as a composition.
The composition name is the same as the Illustrator file rollercoaster which can be seen in the Project panel. (The illustrator art layers are also bundled together in a folder in the Project panel.)
Step 4 – Applying the Motion Guide
Step 4.1 - Delete the motion path art/footageDouble click on the rollercoaster composition in the Project panel to open it. Locate the “motion path” layer in the timeline (it is a thick black line that follows the red roller coaster). Since the motion path is imported as footage, it contains no path data needed for the motion path, therefore we do not need this layer. Select this layer and delete it - we will import the path data from Illustrator (select layer then press the delete key on your keyboard).
Stop 4.2 - Align the car Anchor Point
Zoomed in view of anchor point. |
Screen cap of the repositioned anchor point. |
Select the “car” art then select the “Pan Behind” tool. Click and drag the Anchor Point of the car to the bottom of the art, where the wheels meet the track (the Anchor Point is located in the center of the car and looks like a bullseye). This aligns the wheels to the motion path we will import in the next step.
Step 4.3 - Import the Motion Path
Screen cap of motion guide and corresponding key frames. |
You will see the motion path in your composition work area and key frames associated with it applied to the car layer’s “Transform > Position” attribute (you may need to adjust the position of the path by using your right or left arrow on your keyboard. Nudge the path until it overlays the track.)
You can scrub the timeline current frame indicator to preview the animation. You should see the roller coaster car gleefully follow the motion guide.
Step 4.4 - Auto Orientate (or Fix my wheels, they are not touching the track!)
Step 4.5 - Adjust the time length of the motion path
Pasting the motion guide created a series of key frames that span about 2 seconds. Let’s double the time of the animation by selecting the key frame on the right and move it out to 4 seconds. This will double the time length of your animation.
Pasting the motion guide created a series of key frames that span about 2 seconds. Let’s double the time of the animation by selecting the key frame on the right and move it out to 4 seconds. This will double the time length of your animation.
Step 5 - Tweak the timing of the key frames
By default, the key frames between the first and last one are set to Roving (meaning they move in relation to the ones next to them). Right click or control click the key frame to deselect this. Now you can reposition the key frame without effecting the others. Set up your key frames as you see fit. (NOTE: As an extra challenge, you can also use the Graph Editor to modify the key frame velocities.)
Step 6 - Looping the Animation
The next steps create a new composition that contains our rollercoaster composition. We will enable time remap and set an action on the rollercoaster composition to accomplish the loop.
Step 6.1 - Preparing the After Effects Composition
Step 6.2 - Create a New Composition
Step 6.3 - Time Remap
Step 7 - Preview the animation