Motion Tracking – Position, Rotation & Scale

Free After Effects Tutorial

Explore this detailed tutorial on using the Mocha AE effect in After Effects for motion tracking transformations in video elements, complete with step-by-step instructions and vivid visual aids.

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.

Topics covered in this After Effects tutorial:

Planar Tracking, Tracking Transform Properties, Mocha AE Plugin,

Exercise Preview

preview 5a

Exercise Overview

In this exercise you’ll use the Mocha AE effect to track a video elements transform properties and apply them to another layer.

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 Advanced Class> Motion Tracking - Transform > Preview Movie and double–click Logo Replacement.mp4.mp4.
  3. Also preview Magic Hand.mp4.
  4. Notice the following:

    • There are graphics placed into a video.
    • The graphics seem following the movement of the surface they are attached to.
  5. 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 > Close Project

  3. In your new project, choose File > Save As > Save As and:

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

Set Up

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 track) into the empty Timeline panel or onto the Create a New Composition button.

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

Applying the MochaAE Effect

MochaAE is an effect and as such can be found in the Effects & Presets panel as well as the Effect menu. Once applied it can open a copy of the MochaAE plug–in that runs inside of After Effects.

  1. Select the video layer that you want to track.

  2. In the Effects & Presets panel type Mocha into the search field.

  3. Double–click on the Mocha AE effect.

  4. In the Effect Controls panel click on the Mocha logo to open Mocha.

Tracking in MochaAE

Mocha is made by BorisFX not Adobe so the terminology, keyboard commands, and even concepts like layer are different from After Effects.

The basic process for tracking in MochaAE:

  • Create a spline (like an AE mask) and this creates a layer.
  • Track the footage and if necessary make adjustments to layer or properties while tracking.
  • If necessary adjust track when complete.
  1. In Mocha, locate the frame where you can best see the element you want to track.

  2. Create a layer around the element you want to track.

  3. Reveal the Planar Surface and make sure it’s positioned in the middle of the element you are tracking.

  4. If necessary, adjust Minimum % Pixels Used.

  5. Track the layer.

  6. Save the Mocha project and return to AE.

Applying Tracking Data to a Layer

Once you have tracked using MochaAE you still have to take that tracking data and apply it to a layer in your After Effects composition.

  1. Back in the After Effects interface create a null object layer

  2. Select your tracked layer and in the Effect Controls panel locate the Tracking Data properties.

  3. Click the Create Tracked Data button and press OK.

  4. Set Export Option to Transform.

  5. Set Layer Export To to the null layer you created earlier and make sure the effect is set to target the Source properties of the layer.

  6. Click Apply Export.

Parenting Layers

  1. Add your graphic layer to your composition and position it relative to the element you tracked.

  2. Set the null object (the same one you applied the tracking data to) as the parent for your graphic layer.

  3. Save your file.

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