Motion Tracking: Free After Effects Tutorial

Master the Motion Tracker feature in After Effects with this comprehensive tutorial that takes you step-by-step through Point Tracking, Motion Tracking, working with Null Object Layers, Multiple Trackers, and importing After Effects Comps.

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 motion graphics design classes in-person and live online.

Topics covered in this After Effects tutorial:

Point Tracking, Motion Tracking, Null Object Layers, Working with Multiple Trackers, Importing After Effects Comps

Exercise Preview

preview motion tracking

Exercise Overview

In this exercise you’ll use a feature called the Motion Tracker to add graphics to a video so they follow along with the content.

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.

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 Class > Motion Tracking > Preview Movie and double–click Fun Facts about Fruit.mp4.
  3. Notice the following:

    • There are animated graphics placed on top of a video.
    • The graphics seem to be sticky, matching the position of the fruit they’re describing.
  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 Class > Motion Tracking.
    • Double–click on Motion Tracking - Started.aep to open it.
  3. Choose File > Save As > Save As and:

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

Creating Compositions from Footage

When working with video footage you’re going to track, it’s helpful to make your composition match the settings (dimensions, length, framerate, etc.) of the video.

  1. In the Project panel, expand the 01 - Video folder.

    • Double–click Green Fruits and Vegetables.mp4 to open it in the Footage panel.
  2. At the bottom left of the Footage panel, click the Preview Time button preview time menu 0 footage.

  3. Type in 815 and hit OK.

  4. At the bottom of the Footage panel (below the time ruler), click the Set Out Point button out point.

    This trims the clip’s out point to the playhead. When this clip is used in After Effects, only the active area will be visible on the timeline.

  5. Close the Footage panel by clicking the x to the left of the tab.

  6. In the Project panel, Ctrl–click (Mac) or Right–click (Windows) on Green Fruits and Vegetables.mp4 and choose New Comp from Selection.

    This creates a new comp that matches the video file’s settings.

  7. Drag the new comp Green Fruits and Vegetables out of the 01 - Video folder.

  8. With the Green Fruits and Vegetables comp selected:

    • Hit Return (Mac) or Enter (Windows) to make the name editable.
    • Rename the comp Fun Facts about Fruit
    • Hit Return (Mac) or Enter (Windows) again to finalize.

Motion Tracking Video: Tracking the Avocado

The built in point tracker in After Effects allows us to track the movement of a group of pixels in a video file. We can then apply that tracked data to another layer so that it can move along as the content in the video does.

  1. Click on the Timeline to make it active.
  2. Choose Layer > New > Null Object.

    • Rename the new [Null 1] layer to Avocado Pos
  3. Press Cmd–D (Mac) or Ctrl–D (Windows) to duplicate the null object layer.

    • Rename the new layer Apple Pos
  4. Move the playhead to the beginning of the timeline.

  5. Ctrl–click (Mac) or Right–click (Windows) on the Green Fruits and Vegetables.mp4 layer and choose Track & Stabilize > Track Motion.

    This opens both the Layer and Tracker panels. The Tracker can only be run from the Layer panel.

    The 3 Parts of the Point Tracker

    tracker

    A = Search Region: The area After Effects searches to locate the pixels that are defined by the Feature Region.

    B = Feature Region: The area of pixels to track. It should be a distinctive feature with as much contrast as possible.

    C = Attach Point: Where the target layer’s anchor point will be attached to.

  6. In the Layer panel, hover over Track Point 1 until you see the black move tool.

    track point move

    • Drag Track Point 1 to the seed of the avocado.
    • Drag the control points of the Search and Feature regions to match this example (enclose a high contrast area with distinct features):

    track point avocado

  7. In the Tracker panel, click Edit Target and:

    • Set Layer to 2. Avocado Pos
    • Click OK.
  8. In the Tracker panel, click Options and:

    • Set Track Name to Avocado Tracker
    • Click OK.
  9. In the Tracker panel’s Analyze section:

    • Click the Analyze Forward tracker analyze forward button.

    While Tracking this button becomes the stop track button.

    NOTE: The Tracker analyzes how the pixels in the feature region change from frame to frame and uses this to construct a motion path. If the track point starts to drift, stop the track, go back to where you started tracking, adjust the Feature and Search regions, then try again.

  10. When the tracking is finished, click Apply at the bottom of the Tracker panel.

    • Set Apply Dimensions to X and Y.
    • Click OK to apply the tracking data to Avocado Pos null.

    NOTE: Depending on your workspace and panel layout, this may automatically return you to the Composition panel.

Motion Tracking Video: Tracking the Apple

Each item in your video that you want to track requires it’s own tracker and each tracker must then be tracked individually.

  1. Make sure the playhead is at the beginning of the timeline and your video layer is selected.

  2. Click on the Layer panel (at the top next to the Composition panel’s tab) so you can continue with tracking the apple.

    NOTE: In order to use the tracker you have to be in the Layer panel and the video layer must be selected.

  3. In the Tracker panel, click the Track Motion button at the top. This creates a second tracker, this one will be for the apple.

  4. In the Layer panel, hover over Track Point 1 until you see the black move tool.

    track point move

    • Drag Track Point 1 to the stem of the apple.
    • Drag the control points of the Search and Feature regions to match this example:

    track point apple

  5. In the Tracker panel, click Edit Target and:

    • Set Layer to 1.Apple Pos
    • Click OK.
  6. In the Tracker panel, click Options and:

    • Set Track Name to Apple Tracker
    • Click OK.
  7. In the Tracker panel’s Analyze section:

    • Click the Analyze Forward tracker analyze forward button.
  8. When the tracking finishes, click Apply at the bottom of the Tracker panel.

    • Set Apply Dimensions to X and Y.
    • Click OK.
  9. You should now see the Composition panel again.

  10. Drag the playhead back and forth through the timeline and notice that the two null object layers now move with the avocado and apple.

    NOTE: If you find it hard to see the null object layers you can change their color by changing the layer’s label color.

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

  12. Choose File > Save or hit Cmd–S (Mac) or Ctrl–S (Windows).

Importing After Effects Comps

When working as part of a group, you may be tasked with only completing part of a project. For example, you may be responsible for tracking, while someone else is responsible for animating the graphics you need. In this workflow the ability to import other After Effect projects is very helpful.

  1. In the Project panel, select the 02 - Nested Comps folder.

  2. Choose File > Import > File (or press Cmd–I (Mac) or Ctrl–I).

  3. Navigate to Desktop > Class Files > After Effects Class > Motion Tracking > Media > AE.

    • Double–click on Animated Callouts.aep to import it.

    NOTE: Unlike when you import other files, importing an After Effects project is more like a copy/paste command. While any footage in the imported project is linked to the original source files, compositions, and other content created in the After Effects project are not linked.

  4. In the Project panel, expand the new Animated Callouts.aep folder.
  5. Double–click the callout 01 composition to open it.
  6. Use the Spacebar to preview the animation.

    The animation is composed of a series of shape and text layers. It’s created entirely with native After Effects layers, so everything is fully editable.

  7. In the Timeline panel, click the x next to the callout 01 comp to close it.

Applying Tracking Data to Layers with Parenting

Now that we have the Avocado and Apple tracked and the graphics we want to use imported. It is time to connect everything together.

  1. Drag the callout 01 comp from the Project panel into the left side of the Timeline below the Avocado Pos layer.
  2. Rename the callout 01 layer to Avocado Callout
  3. Move the playhead to 2;00

    This is towards the end of the callout animation so we can see its size and position on screen.

  4. In the Tools panel, choose the Pan Behind tool pan behind anchor point tool (or hit the Y key).

    • In the Tool options to the right of the Tools panel, make sure Snapping is unchecked.
  5. Drag the Anchor Point anchor point of the Avocado Callout layer to the center of the circular part of the callout.

    avocado 01

  6. In the Tools panel, choose the Selection tool selection tool (or hit the V key to choose it).

  7. Drag the Avocado Callout until the layer’s anchor point anchor point is positioned over the avocado’s seed.

    avocado 02

  8. In the Timeline, to the right of the Avocado Callout layer set the Parent menu to 2.Avocado Pos.

  9. With the Avocado Callout layer selected, hit S to reveal Scale.

    • Change Scale to 60
    • Press S to hide Scale.
  10. Use the Spacebar to preview the animation.

    The callout now follows the position of the avocado!

  11. Drag callout 02 comp from the Project panel into the left side of the Timeline below the Apple Pos layer.
  12. Rename the callout 02 layer to Apple Callout
  13. Move the playhead to the end of the timeline so we can see the callout animation.
  14. In the Tools panel, choose the Pan Behind tool pan behind anchor point tool (or hit the Y key).
  15. Drag the Anchor Point anchor point of the Apple Callout layer to the center of the circular part of the callout.
  16. Move the playhead to 4;00
  17. In the Tools panel, choose the Selection tool selection tool (or hit the V key to choose it).
  18. Drag the Apple Callout until the layer’s anchor point anchor point is positioned at the base of the apple’s stem.

  19. In the Timeline, to the right of the Apple Callout layer set the Parent menu to 1.Apple Pos.
  20. Press S to reveal Scale.

    • Change the scale to 60
    • Press S again to hide the property.
  21. Hit [ to slide the beginning of the Apple Callout layer to the playhead.

  22. Use the Spacebar to preview the animation.

  23. Choose File > Save or hit Cmd–S (Mac) or Ctrl–S (Windows).

Optional Bonus: Editing a Nested Composition

The smaller text is a bit hard to read. Let’s make it bold so it stands out more. This is one of the major advantages of importing a native after effect project instead of working with pre-rendered video.

  1. In the Timeline, double–click on the Avocado Callout composition layer.
  2. Move the playhead to the beginning of the timeline.
  3. Click the reveal arrow next to the text layer.
  4. Click the reveal arrow for the Text properties.

    • Click the eye eye icon for Animator 1 to hide it.
  5. In the Timeline, double–click on the name of the text layer.

    NOTE: This does two things, it selects the text in the comp panel and automatically switches to the Type tool.

  6. In the Composition panel, select the text “member of the same family as cinnamon”.
  7. In the Character panel on the right, change the font style to bold.
  8. In the Timeline, show the Animator 1 by clicking in the eye column eye icon.
  9. Click on the x for the callout 01 timeline to close it and return to the Fun Facts about Fruit composition.
  10. Double–click on the Apple Callout comp layer to open callout 02.
  11. Move the playhead so you can read all the text.
  12. In the Timeline, double–click on the name of the text layer.
  13. In the Composition panel, select the text “member of the same family as the rose”.
  14. In the Character panel on the right, change the font style to bold.
  15. Click on the x for the callout 02 timeline to close it and return to the Fun Facts about Fruit composition.
  16. Use the Spacebar to preview the animation.

    Notice the callout text has now been updated.

  17. Choose File > Save or hit Cmd–S (Mac) or Ctrl–S (Windows).

  18. You’re done, so choose File > Close Project.

Jerron Smith

Jerron Smith is an Editor, Animator, Educator and an Author. He has a MA in Communication Arts and expert level certifications in Adobe After Effects, Adobe Premiere Pro, Adobe Photoshop and Illustrator. He also has a good working knowledge of other animation programs like Cinema 4D, Adobe Animate, and 3DS Max from his decades of experience in and around the design industry. He has authored multiple books and video training series on computer graphics software such as: After Effects, Premiere Pro, Photoshop, Illustrator and Flash(back when it was a thing). Jerron has taught at the college level at schools such as The New York Institute of Technology, New York City College of Technology, and Fashion Institute of Technology.

More articles by Jerron Smith

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