You create a shape layer by drawing in the Composition panel with a shape tool or the Pen tool. You can then add shape attributes to existing shapes or create shapes within that shape layer. By default, if you draw in the Composition panel when a shape layer is selected, you create a shape within that shape layer, above the selected shapes or group of shapes. If you draw in the Composition panel using a shape tool or Pen tool when an image layer other than a shape layer is selected, you create a mask. For more information, see Create masks in After Effects.
Shortcuts for Shape tool is Q, and Pen Tool shortcut is G.

Märkus.
Before drawing in the Composition panel to create a shape layer, press F2 and deselect all layers.
Usually, a new shape has a fill and a stroke that correspond to the Fill and Stroke settings in the Tools panel at the time that the shape is drawn. You can use the same controls in the Tools panel to change these attributes for a selected shape after it has been drawn. Shapes created from text are created with fills and strokes that match the fills and strokes of the original text.
You can create a shape layer from a vector art footage layer, and then modify it. With the ability to bevel and extrude objects in After Effects, you can extrude the artwork, for example, extruded logos. For more information, see Extruding text and shape layers.
To convert a vector art footage layer to shape layer, choose Layer > Create > Create Shapes from Vector Layer. A matching shape layer appears above the footage layer, and the footage layer is muted.
- Not all features of Illustrator files are currently preserved. Examples include: opacity, images, and gradients.
- Converted shapes ignore PAR overrides specified in the Interpret Footage dialog box.
- Gradients and unsupported types may show as 50% gray shapes.
- Files with thousands of paths may import slowly without feedback.
- The menu command works on a single selected layer at a time.
- If you import an Illustrator file as a composition (multiple layers), you cannot convert all those layers in one pass. However, you can import the file as footage, and then use the command to convert the single footage layer to shapes.
Märkus.
To activate and cycle through the shape tools, press Q.
A polygon is a star without an Inner Radius or Inner Roundness property. So, the name of the shape created for a polygon or a star is the same: polystar.
You can create a mask by dragging with a shape tool on a selected layer in the Composition panel or Layer panel. You can create a shape by dragging with a shape tool on a selected shape layer in the Composition panel. If you drag with a shape tool in the Composition panel with no layer selected, you create a shape on a new shape layer.
Märkus.
To draw a mask on a shape layer, click the Tool Creates Mask button in the Tools panel with a shape tool active.
When you create a shape by dragging with a shape tool in the Composition panel, you create a parametric shape path. To instead create a Bezier shape path, press the Alt (Windows) or Option (Mac OS) key before you click to begin dragging. You can release the key before you complete the drag operation. All mask paths are Bezier paths. (See About shapes and shape layers.)
Dragging starts when you click in the Composition panel or Layer panel to begin drawing, and ends when you release the mouse button. Pressing modifier keys at different times during a single dragging operation achieves different results:
To reposition a shape or mask as you are drawing, hold the spacebar or the middle mouse button while dragging.
To scale a circle, ellipse, square, rounded square, rectangle, or rounded rectangle around its center while drawing, hold the Ctrl (Windows) or Command (Mac OS) key after you begin dragging. Don’t release the key until you have released the mouse button to finish drawing.
To cancel the drawing operation, press Esc.
Märkus.
Each shape tool retains the settings of the most recent drawing operation with that tool. For example, if you draw a star and modify the number of points to be 10, then the next star that you draw will also have 10 points. To reset settings for a tool and create a shape with the default settings, double-click the tool in the Tools panel. (See Create a shape or mask the size of the layer.)
2. (Optional) If drawing a rounded rectangle or rounded square, do the following before releasing the mouse button:
- To increase or decrease the corner roundness, press the Up arrow key or the Down arrow key, or roll the mousewheel forward or backward.
- To set corner roundness to the minimum or maximum, press the Left arrow key or the Right arrow key.
3. Finish drawing by releasing the mouse button. If drawing a square or rounded square, release the Shift key after releasing the mouse button.
Märkus.
Squares are created to be square according to the pixel aspect ratio of the composition. If the pixel aspect ratio of the composition is not 1, then squares appear square in the Composition panel only if the Toggle Pixel Aspect Ratio button is selected at the bottom of the Composition panel.
Märkus.
Circles are created to be circular according to the pixel aspect ratio of the composition. If the pixel aspect ratio of the composition is not 1, then circles appear circular in the Composition panel only if the Toggle Pixel Aspect Ratio button is selected at the bottom of the Composition panel.
2. (Optional) Do the following before releasing the mouse button:
- To add or remove points, press the Up arrow key or the Down arrow key, or roll the mouse wheel forward or backward.
- To increase or decrease the outer roundness, press the Left arrow key or the Right arrow key.
- To keep the inner radius of a star constant as you move the mouse to increase the outer radius, hold the Ctrl (Windows) or Command (Mac OS) key.
- To increase or decrease the inner roundness of a star, press the Page Up key or the Page Down key.
3. Release the mouse button to finish drawing. If Shift-dragging to prevent rotation, release the Shift key after releasing the mouse button.
You can create a Bezier mask using the Pen tool on a selected layer in the Composition panel or Layer panel. You can create a shape with a Bezier path using the Pen tool on a selected shape layer in the Composition panel. If you draw with the Pen tool in the Composition panel with no layer selected, you create a shape on a new shape layer.
Creating a RotoBezier path is similar to creating a manual Bezier path. The primary difference is that direction lines for vertices and curvature for path segments are automatically calculated.
-
- To close the path, place the pointer over the first vertex and, when a closed circle icon appears next to the pointer
, click the vertex. You can also close a path by double-clicking the last vertex or choosing Layer > Mask And Shape Path > Closed.
- To leave the path open, activate a different tool, or press F2 to deselect the path.
- To close the path, place the pointer over the first vertex and, when a closed circle icon appears next to the pointer
The simplest path that you can draw with the Pen tool is a straight line, made by clicking with the Pen tool to create two vertices. By continuing to click, you create a path made of straight-line segments connected by corner points.
You create a curved path segment by dragging direction lines. The length and direction of the direction lines determine the shape of the curve.
Märkus.
Shift-drag to constrain the angle of the direction lines to whole multiples of 45°. Alt-drag (Windows) or Option-drag (Mac OS) to modify only the outgoing direction line.

A. Starting to drag B. Dragging away from previous direction line, creating a C curve C. Result after releasing mouse button
Use Create Shapes From Text to extract the outlines for each character, create shapes from the outlines, and put the shapes on a new shape layer. You can then use these shapes as you would any other shapes.
Use Create Masks From Text to extract the outlines for each character, create masks from the outlines, and puts the masks on a new solid-color layer. You can then use these masks as you would any other masks.
Märkus.
Some font families, such as Webdings, include characters that are graphical images, rather than text. Converting text from these font families can be a good way to get started with simple graphical elements in shape layers.

- The Video switch
for the text layer is turned off.
- The new shape layer is created at the top of the layer stacking order. The new layer contains one shape group for each selected character, plus fill and stroke properties that match the fills and strokes of the text.
- For characters that consist of compound paths—such as i and e—multiple paths are created and combined with the Merge Paths path operation.
- Effects, masks, layer styles, and keyframes and expressions for properties in the Transform property group of the text layer are copied to the new shape layer or solid-color layer.

You can copy a path from Illustrator or Photoshop and paste it into After Effects as a mask path or shape path.
To make the data copied from Illustrator compatible with After Effects, the AICB option must be selected in the Files & Clipboard section of the Adobe Illustrator Preferences dialog box.
For a path imported from Photoshop to be scaled correctly, the Photoshop document must have a resolution of 72 dpi. 72 dpi is the Resolution setting of documents created in Photoshop using a Film & Video preset.
You can also use a copied Illustrator or Photoshop path as an After Effects motion path. See Create a motion path from a mask, shape, or paint path for more information.

-
Märkus.
To paste a path as a shape path, you must select the Path property of an existing shape in a shape layer. This selection tells After Effects what the target of the paste operation is; if the target isn’t specified in this way, After Effects assumes that the target is the entire layer and therefore draws a new mask. If there is no Path property—perhaps because the shape layer is empty—then you can draw a placeholder path with the Pen tool and then paste the path from Illustrator into the placeholder path.
You can copy position keyframes, anchor point keyframes, or an effect control point’s position keyframes and paste those keyframes into a selected mask path or shape path. When you create mask paths or shape paths from motion paths, make sure that you copy keyframes from a single Position property only—do not copy the keyframes of any other property.
Märkus.
Draw a motion path with Motion Sketch and then paste the path into a mask path or shape path.

To do it, see Create a mask from a motion path.
When a shape group is selected in group selection mode, you can duplicate the group while moving, rotating, or scaling it in the Composition panel.
Hold the Alt (Windows) or Option (Mac OS) key as you drag to transform a group.
The pointer changes to a duplication pointer ( or
) as you hold the key and place the pointer near the group transform box.