Shape Layers in After Effects: Draw Shapes, Fill and Stroke, Paths, Trim Paths and Repeater for Motion Graphics

Adobe After Effects 60 min min read Updated: Nov 17, 2026 Beginner
Shape Layers in After Effects: Draw Shapes, Fill and Stroke, Paths, Trim Paths and Repeater for Motion Graphics
Beginner Topic 1 of 3

What Is a Shape Layer?

A shape layer holds vector shapes. Vectors stay sharp at any size, so shapes are perfect for icons, backgrounds, charts and motion graphics.

Drawing Shapes

  • Press Q to cycle the shape tools: rectangle, rounded rectangle, ellipse, polygon and star
  • Drag in the Composition panel to draw
  • Hold Shift for a perfect square or circle
  • Use the Pen tool (G) to draw custom paths
  • Nothing selected when you draw makes a new shape layer. A layer selected makes a mask instead
Shape or mask? If a layer is selected when you draw, After Effects creates a mask. To make a shape, deselect all layers first.

Fill, Stroke and Contents

Open the shape layer. Under Contents you see groups. Each group has a path, a fill and a stroke, plus a transform that moves only that group.

ItemWhat it does
PathThe outline shape
FillInside color
StrokeOutline color, width, caps and joins
TransformMoves this group only

Trim Paths

Trim Paths shows only part of a path. Animate Start, End and Offset to make a line draw itself on.

  1. Draw a path with a stroke and no fill
  2. Click Add next to Contents and choose Trim Paths
  3. Keyframe End from 0 percent to 100 percent
  4. Add Easy Ease (F9)

Repeater

Repeater copies a shape many times with a changing offset. Add it from the Add menu. Change Copies, then change the Transform values such as Position and Rotation.

python import math copies = 8 radius = 100 print("Rotation per copy:", 360 / copies, "degrees") for i in range(copies): angle = math.radians(i * 360 / copies) x = round(radius * math.cos(angle), 1) y = round(radius * math.sin(angle), 1) print("copy", i, "position", (x, y))
Result

Rotation per copy: 45.0 degrees | copy 0 position (100.0, 0.0) | copy 1 position (70.7, 70.7) | copy 2 position (0.0, 100.0) | copy 3 position (-70.7, 70.7) | copy 4 position (-100.0, 0.0) | copy 5 position (-70.7, -70.7) | copy 6 position (-0.0, -100.0) | copy 7 position (70.7, -70.7)

To make a ring of dots, put one dot at the radius from the anchor point, set Repeater copies to 8 and set Rotation to 45 degrees.

Practice

  1. Draw a circle and a rounded rectangle and change their fill and stroke
  2. Animate Trim Paths on a curved line
  3. Use Repeater to make a ring of 12 dots
  4. Group shapes and animate each group's transform

Conclusion

Shape layers give you sharp, animatable vectors. Learn fill, stroke, Trim Paths and Repeater for motion graphics.

Quick Summary: Shape layers; drawing; fill and stroke; Trim Paths; Repeater.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators