Superman: Simple Character Animation Using Masks
Master Character Animation with After Effects Masks
Key Animation Techniques You'll Master
Expression to Keyframe Conversion
Transform code-based animations into editable keyframes for realistic hair movement with natural delays and sequencing.
Custom Mask Creation
Use the Pen tool to create complex shapes with both straight lines and curves for precise layer control.
Pre-Composition Animation
Group multiple layers together to animate complex elements like heads with multiple parts as single units.
Project Setup Process
Open Project File
Navigate to the Superman folder and open Cartoon Hero Started.aep from the class files directory.
Save Your Version
Use Save As to create your personal copy with the naming convention yourname-Cartoon Hero.aep.
Enable Transparency
Click the Toggle Transparency Grid button to reveal the transparent background of your composition.
Replace the default expression text with wiggle(3,20) in the expression field.
This expression instructs the hair to wiggle randomly 3 times per second with a maximum deviation of 20° in either direction. The wiggle expression is fundamental for creating organic, wind-blown effects that would be nearly impossible to achieve convincingly through manual keyframing.
Click in any gray area of the Timeline to confirm the expression and see it take effect.
Press Spacebar to preview the animation. Notice how the hair moves with convincing randomness, simulating natural wind interaction.
While effective for individual elements, wiggle expressions present a challenge for multiple related objects. Simply copying this expression to other hair layers would generate independent random values for each, creating unrealistic movement where hair spikes move without any relationship to each other. Conversely, parenting all layers to hair4 would make them rotate in perfect unison around hair4's anchor point—equally unnatural for hair physics.
To achieve realistic sequential hair movement, we'll convert the expression to discrete keyframes that can be offset in time. Execute this conversion:
- Click on the word Rotation in the Timeline to select the property.
- Navigate to Animation > Keyframe Assistant > Convert Expression to Keyframes. This powerful command translates the procedural animation into editable keyframes
.
After Effects generates one circular keyframe per frame (appearing as a continuous bar in the Timeline). The circular shape indicates smooth interpolation between keyframes, maintaining the fluid motion of the original expression.
Copy the complete keyframe set by ensuring Rotation is selected and pressing Cmd-C (Mac) or Ctrl-C (Windows).
Our goal is to create a natural cascade effect where the leftmost hair spike initiates movement, with each subsequent spike following with a subtle delay—mimicking how wind affects hair in reality.
Navigate to -0;02 by clicking the timecode display and entering -2, then pressing Return/Enter. This positions the playhead 2 frames before the composition start, which is why the Composition panel appears black.
Select hair3 and paste the keyframes with Cmd-V (Mac) or Ctrl-V (Windows).
Verify the keyframe transfer by pressing U to show all modified properties. The keyframes should now appear on hair3.
Continue pasting keyframes to the remaining hair layers at these specific timecodes (navigate backward using Cmd-Left Arrow twice on Mac or Page Up twice on Windows):
| hair2: | -0;04 |
| hair1: | -0;06 |
Return to a full composition view by setting the magnification to Fit.
Preview the complete hair animation by pressing Spacebar. You should observe hair1 (leftmost) initiating the movement, followed by each subsequent spike in natural succession—creating convincing hair physics that responds to environmental wind patterns.
Expressions really shine when you either want to add a complex animation that would be too tedious to keyframe, or want to dynamically link two or more properties so they influence each other in some way.
If your mask completely obscures the cape, disable Render in the bottom right of the Layer panel (expand the panel rightward if this option isn't visible). This allows you to see both the mask and the underlying artwork simultaneously.
Create the second mask for the cape's lower section. Begin with a curved vertex by clicking and holding in the center of your first mask, then dragging rightward to establish the curve handle:

Complete the lower cape mask following the reference image. Note that the third vertex requires a click-and-drag motion to create the curved segment. Focus on including the entire lower cape section rather than achieving pixel-perfect accuracy:

Fine-tune any vertices now using the Pen tool techniques described in the earlier sidebar.
Return to the Composition view by closing the Layer panel tab (click the X next to the layer name).
Separate the overlapping masks onto individual layers for independent animation control. Select the cape layer in the Timeline.
Duplicate the layer using Cmd-D (Mac) or Ctrl-D (Windows), creating two identical cape layers.
Select both cape layers by clicking cape 2, then Shift-clicking the original cape layer.
Press M to reveal all Mask properties for both selected layers simultaneously.
Configure the upper cape layer:
- Select the cape 2 layer and press Return/Enter to enable renaming.
- Rename to top cape and confirm with Return/Enter.
- Delete the unwanted lower mask by selecting Mask 2 and pressing Delete.
Configure the lower cape layer:
- Select the cape layer and rename it to bottom cape using the same Return/Enter process.
- Remove Mask 1 by selecting it and pressing Delete, leaving only the lower mask active.
Mask Editing Checklist
Allows simultaneous adjustment of multiple points for efficient editing
Provides pixel-perfect control when dragging isn't precise enough
Fine-tune the curvature by dragging the dots on curved segments
Prevents mask from hiding the underlying layer during editing
Wave Warp Settings for Realistic Cape Motion
Wave Width: 100
Creates longer, more realistic wave patterns that mimic natural fabric movement in wind.
Direction: 0x +177°
Sets the wave direction to create natural horizontal billowing motion for the cape.
Pinning: Top Edge
Keeps the top of the cape stationary while allowing the bottom to wave naturally.
Enable Continuously Rasterize on the bottom cape layer to prevent the wave effect from cutting off the cape's edges during animation.
Key Takeaways

, then drag the composition view to center the hair spikes.
next to hair4, allowing you to work without visual distractions.
from the Tools panel. The anchor point determines the pivot point for all transformations—positioning it at the hair's base creates realistic movement.
to the bottom center of the hair spike, as shown:
beside Rotation. This creates an expression—a powerful code-based animation system that generates movement algorithmically.
on the cape layer. This vector scaling option must be turned off to enable Layer panel editing—a requirement for mask creation on imported Illustrator artwork.
from the Tools panel. This industry-standard vector drawing tool enables precise path creation with both straight segments and smooth curves.
confirms path completion.
, enabling repositioning through dragging or arrow key nudging. For multiple vertex selection, Shift-click additional points after selecting the first. Curved segments can be refined by dragging the curve handlebars (small dots extending from curved vertices) to adjust the arc's intensity and direction. These real-time editing capabilities make the Pen tool invaluable for achieving precise mask shapes that conform perfectly to your animated elements.