Rotoscoping: Free After Effects Tutorial

Delve into the fascinating world of rotoscoping with this comprehensive After Effects tutorial, exploring everything from the basics of rotoscoping to the usage of tools like the Roto Brush and the creation of masks and mattes for video editing.

This exercise is excerpted from Noble Desktop’s Adobe After Effects training materials and is compatible with After Effects updates through 2023. To learn current skills in After Effects with hands-on training, check out our After Effects Bootcamp, Motion Graphics Certificate, and video editing classes in-person and live online.

Note: These materials are provided to give prospective students a sense of how we structure our class exercises and supplementary materials. During the course, you will get access to the accompanying class files, live instructor demonstrations, and hands-on instruction.

Topics covered in this After Effects tutorial:

What is Rotoscoping?, Using the Roto Brush tool, Refining the Roto Brush Properties

Exercise Preview

preview 6b

After Effects Bootcamp: Live & Hands-on, In NYC or Online, Learn From Experts, Free Retake, Small Class Sizes,  1-on-1 Bonus Training. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

Exercise Overview

In this exercise you’ll learn how to use rotoscoping to mask out parts of a live–action video.

Previewing the Final Video

  1. Let’s see a preview of what you’ll be making. If you’re in After Effects, keep it open but switch to your Desktop.
  2. On the Desktop, navigate to Class Files > After Effects Advanced Class> Rotoscoping > Preview Movie and double–click Flying Over Donuts.mp4.
  3. Notice the following:

    • There are animated graphics placed on top of a video.
    • The graphics seem to be matching the movement of the video and also appear from behind one of the elements in the video.
  4. Replay the video if you need to, and close it when done.

Setting Up the Workspace

  1. In After Effects, go to Window > Workspace > Standard.

  2. Choose Window > Workspace > Reset “Standard” to Saved Layout.

  3. If the After Effects window does not fill the screen, maximize it:

    Mac: At the top left of the window, click the green button (the third button).
    Windows: At to the top right of the window, click the Maximize button (the middle button).

Getting Started

  1. In After Effects, if you have a project open, choose File > Save.

  2. Choose File > Open Project and:

    • Navigate to Desktop > Class Files > After Effects Advanced Class > Rotoscoping.
    • Double–click on Rotoscoping - Started.aep to open it.
  3. Choose File > Save As > Save As and:

    • Name the file Your Name - Rotoscoping.aep and
    • Save it into Desktop > Class Files > After Effects Advanced Class> Rotoscoping.

What is Rotoscoping?

In animation and visual effects the term rotoscoping has many meanings. One example of rotoscoping in animation is the use of video or film footage as in films such as Richard Linklater’s A Scanner Darkly (2006) or Ralph Bakshi’s *Fire and Ice** (1983). Another use of the term, this one from the area of Visual Effects and compositing where it is used to describe the process of creating a matte or mask around an element in your video. This mask allows you to isolate an element from the rest of content of a video layer. This isolated element can then be used to composite with other elements in the scene, color corrected individually or otherwise treated separately from the rest of the elements in the video.

Setting Up for Rotoscoping

In this example we have provided you with a project and composition to start with.However, normally you’ll have to create one yourself. When tracking it is necessary to make sure that the dimensions of the video you are going to track match those of your composition.

When creating a project from scratch, follow these instructions:

  1. Drag your main video (the one you want to roto) into the empty Timeline panel or onto the Create a New Composition create new comp button located at the bottom of the Project panel.

    While not absolutely necessary for rotoscoping, if you need to use the 3D Camera Tracker or MochaAE effects you will need to start with a comp that matches the footage attributes.

  2. Rename the layer so that you can remember this is the one you want to roto.

  3. If necessary use motion (as in the case of a screen replacement) or camera (match moving) tracking so that you can place your graphics where you need them.

Manual Rotoscoping

Manual rotoscoping is just what it sounds like. In this process, you would create a mask/matte around your objects by tracing them with the Pen tool. This process can be very tedious and it is sometimes necessary to proceed frame by frame. The most flexible and reusable way to manually rotoscope an element is to use either a shape layer or a solid layer with a mask on it as a track matte.

  1. Add the footage you want to rotoscope to your composition.

  2. Move to the frame of the video where you can see the element you want to rotoscope the best.

  3. In the Tools panel, click on the Pen pen tool to activate it.

    NOTE: As long as you don’t have a layer selected the Pen tool will create a new shape layer.

  4. In the tool options, assign the shape a fill color and disable its stroke.

  5. Use the Pen pen tool tool to begin to outline the element. The fill color will start to cover the video.

  6. Pause your tracing and turn off the visibility of the new shape layer. You will still be able to see your path.

  7. Continue outlining the element in this frame.

  8. Open the shape layer options until you find the new shape’s Path property and turn on its stopwatch. This allows you to animate the mask shape.

  9. In the Timeline move the playhead to the first or last frame where you can see your element and use the Selection tool to adjust the shape’s anchor points.

  10. Move the playhead between the first two keyframes and adjust the shape path again.

  11. Continue moving the playhead halfway between existing keyframes until you have rotoscoped the entire video.

    NOTE: You will find using this halfway method that you won’t need to create keyframes for every frame of video. Some frames will have very little movement between them and the path interpolation will take care of it.

Applying the Roto Brush tool

The Roto Brush tool in After Effects allows you to select parts of a video layer based on color similarity. In this scenario you are using the Roto Brush tool on a copy of your background video layer to create a matte.

  1. Make a copy of the layer with the element you want to roto.

  2. Rename this duplicate layer and move it above the layer you want to matte.

    Delete any tracker effects you may have on this duplicate.

  3. Switch to the Paint workspace by choosing Window > Workspace > Paint

  4. Double–click on the layer you want to use the Roto Brush tool on. The Roto Brush tool only works in a Layer panel.

  5. Click on the Roto Brush rotobrush tool tool to activate it.

  6. Adjust the brush size as necessary. The Roto Brush tool settings can be adjusted using the Brushes panel.

    brushes panel

    NOTE: The brush size can also be adjusted by holding down the Cmd (Mac) or Ctrl (Windows) key and dragging with the mouse.

  7. In the Layer panel, the roto brush appears as a green circle when you are going to add an area.

    Drag the roto brush over the element you want to select. It’s important to keey the brush inside the objects you want to remain visible.

  8. If you accidentally select something you don’t want, hold the Option (Mac) or Alt (Windows) key and drag over the area you want to remove.

    When the Roto Brush tool is removing an area from the selection it turns into a red circle.

  9. The Roto Brush tool needs to propagate into order to affect the entire video. If you are idle for a few seconds the brush will automatically begin to propagate out from your playhead.

    The brush will also propagate whenever you move the playhead forward or back on the timeline.

  10. In the Paint workspace you can view the Composition and Layer panels side by side so you can compare the roto edge you are creating with the final result.

  11. Move the playhead forward or back and adjust the Roto Brush tool edge as necessary. Continue this until you have rotoscoped your element for every frame of your video.

  12. When you are done with your roto work, free the propagation using the Freeze rotobrush freeze button at the bottom of the Layer panel.

  13. Save your project.

Refining the Roto BrushMatte

Once created the Roto Brush edge can be refined using both the tool itself as well as the properties available to you in the Effects Controls panel. Once the Roto Brush tool has been applied and frozen you can still make adjustments to it using either the Refine Edge Tool or Roto Brush & Refine Edge properties.

  1. If necessary, switch to the Standard workspace by choosing Window > Workspace > Standard.

  2. In the Effect controls panel open the Roto Brush Matte properties.

    Roto Brush Matte Properties

    Feather: Similar to mask feather, this property adjusts the edge of the matte effectively fading it out.

    Contrast: Increase the sharpness of the edgecan be used to reduce the edge fade caused by feathering.

    Shift Edge: can be positive or negative. Negative value pull the edge in closer to the center of the matte, while positive numbers push it further away. Similar to mask expansion, this property can be used to increase or decrease the radius of the edge without having to recreate it.

    Reduce Chatter:

    For additional information on the Roto Brush tool you can check out the Adobe help files on the tool: https://helpx.adobe.com/after-effects/using/roto-brush-refine-matte.html

  3. If necessary adjust the properties to refine your roto brush matte.

    NOTE: If you are wondering why half of the effect’s properties are grayed out, it becuase they only turn on when using the Roto Brush and Refine Edge tools together. The Refine Edge tool is used when the element you are trying to roto has semi–transparent areas like hair or feathers.

  4. Save your project.

How to Learn After Effects

Master After Effects with hands-on training. After Effects is the industry-standard application for motion graphics, animation, and visual effects.

Yelp Facebook LinkedIn YouTube Twitter Instagram