Topics Covered in This After Effects Tutorial:
Planar Tracking, Tracking Transform Properties, Mocha AE Plugin
Core Motion Tracking Concepts
Planar Tracking
Track surfaces and planes rather than single points for more accurate motion data across complex movements.
Transform Properties
Capture and apply position, rotation, and scale data from tracked elements to other layers seamlessly.
Mocha AE Integration
Leverage professional tracking tools within After Effects for advanced motion tracking workflows.
Exercise Preview

Preview Files to Examine
Logo Replacement.mp4
Watch how graphics are seamlessly integrated and follow surface movement throughout the video sequence
Magic Hand.mp4
Observe the tracking accuracy and how elements maintain proper perspective and positioning
Exercise Overview
In this comprehensive exercise, you'll master the Mocha AE effect to precisely track a video element's transform properties and seamlessly apply them to another layer. This technique forms the backbone of professional motion graphics work, enabling you to create convincing composites where graphics appear naturally integrated into live-action footage. By the end of this tutorial, you'll have the skills to tackle complex tracking scenarios that would be impossible with After Effects' built-in point trackers alone.
Previewing the Final Video
Before diving into the technical process, let's examine the professional results you'll achieve with proper planar tracking implementation.
- Let's see a preview of what you'll be creating. If you're currently in After Effects, keep it open but switch to your Desktop.
- On the Desktop, navigate to Class Files > After Effects Advanced Class> Motion Tracking—Transform > Preview Movie and double-click Logo Replacement.mp4.
- Also preview Magic Hand.mp4 to see an additional example of this technique in action.
Notice the following critical elements:
- Graphics are seamlessly integrated into the video, matching the perspective and movement perfectly.
- The graphics follow the surface movement with precise accuracy, maintaining proper scale, rotation, and position throughout the sequence.
Replay the video to analyze how the tracking maintains accuracy even through complex camera movements, then close it when you've finished your analysis.
Pay attention to how graphics maintain proper perspective and scale as they follow the tracked surface. Notice the seamless integration between real footage and added elements.
Setting up the Workspace
A properly configured workspace is essential for efficient tracking workflows. Let's optimize your After Effects interface for this advanced technique.
In After Effects, go to Window > Workspace > Standard.
Choose Window > Workspace > Reset "Standard" to Saved Layout to ensure all panels are in their optimal positions.
If the After Effects window does not fill the screen, maximize it for the best tracking experience:
Mac: At the top left of the window, click the green button (the third button). Windows: At the top right of the window, click the Maximize button (the middle button).
Workspace Setup Checklist
Ensures consistent panel layout for tutorial steps
Removes any custom modifications that might interfere
Provides optimal screen real estate for tracking work
Getting Started
Now we'll set up a new project specifically optimized for motion tracking work. Proper project organization is crucial when working with tracking data.
In After Effects, if you have a project open, choose File > Save to preserve your current work.
Choose File > Close Project to start fresh.
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.
Always save your current work before starting a new project. Use descriptive naming conventions for tracking projects to maintain organization.
Project Setup and Composition Creation
When working with motion tracking, ensuring that your composition settings match your source footage dimensions is absolutely critical. Mismatched settings will result in tracking data that doesn't align properly with your composition space.
For tracking projects created from scratch, follow this essential workflow:
Drag your primary video footage (the clip you want to track) into the empty Timeline panel or directly onto the Create a New Composition button. This automatically creates a composition with matching dimensions and frame rate.
Rename the layer to something descriptive like "Source Footage" or "Tracking Layer" so you can easily identify it throughout the tracking process.
Ensuring video dimensions match composition settings prevents scaling issues and maintains tracking accuracy throughout the workflow.
Project Setup Process
Import Main Video
Drag the video you want to track directly onto the Timeline or New Composition button
Rename Layer
Use descriptive names like 'Main_Video_Track' to identify the tracking source layer clearly
Applying the Mocha AE Effect
Mocha AE represents one of the most powerful tracking tools available within After Effects. Unlike traditional point trackers, Mocha uses planar tracking technology that analyzes entire regions of pixels, making it significantly more robust for complex camera movements and perspective changes.
Select the video layer that contains the element you want to track.
In the Effects & Presets panel, type Mocha into the search field to quickly locate the effect.
Double-click on the Mocha AE effect to apply it to your selected layer.
In the Effect Controls panel, click on the Mocha logo to launch the Mocha interface. This opens the full Mocha application within After Effects.
MochaAE Application Workflow
Select Target Layer
Choose the video layer containing the element you want to track
Apply Mocha AE Effect
Search for and double-click Mocha AE in the Effects & Presets panel
Launch Mocha Interface
Click the Mocha logo in Effect Controls to open the dedicated tracking environment
Understanding Mocha AE's Tracking Workflow
Before diving into the technical steps, it's important to understand that Mocha AE is developed by Boris FX, not Adobe. This means the interface, terminology, and workflow concepts differ significantly from After Effects. Even fundamental concepts like "layers" work differently in Mocha's planar tracking environment.
The core Mocha AE tracking workflow follows this proven sequence:
- Create a spline shape (similar to an After Effects mask) which automatically generates a tracking layer.
- Execute the track across your footage timeline, making real-time adjustments to the layer boundaries or tracking parameters as needed.
- Perform post-tracking refinements and adjustments to ensure maximum accuracy throughout the entire sequence.
Now let's implement this workflow step by step:
In Mocha, scrub through your timeline to locate the frame where the element you want to track is most clearly visible and has good contrast with the surrounding areas.
Create a spline layer around the element you want to track, ensuring you select an area with sufficient detail and contrast for reliable tracking.
Reveal the Planar Surface indicator and verify it's positioned precisely in the center of the element you're tracking. This surface represents the plane that your tracked graphics will align to.
If necessary, adjust the Minimum % Pixels Used parameter to optimize tracking performance based on your footage characteristics.
Execute the tracking process across your entire timeline, monitoring the results in real-time.
Save the Mocha project to preserve your tracking data, then return to the After Effects interface.
Applying Tracking Data to a Layer
Successfully completing the track in Mocha is only half the process. The crucial next step involves transferring that tracking data back into your After Effects composition and applying it to the layers you want to move. This is where many users encounter challenges, but following this precise workflow ensures reliable results.
Back in the After Effects interface, create a null object layer that will serve as the recipient for your tracking data.
Select your tracked layer and locate the Tracking Data properties in the Effect Controls panel.
Click the Create Tracked Data button and press OK to generate keyframe data from your Mocha track.
Set the Export Option to Transform to transfer position, scale, and rotation data.
Set Layer Export To to target the null layer you created, ensuring the effect targets the Source properties of that layer.
Click Apply Export to transfer the tracking data to your null object.
Data Export Workflow
Create Null Object
Generate a null layer in After Effects to receive the tracking data
Export Transform Data
Set Export Option to Transform and target the null layer for data application
Apply to Source Properties
Ensure the effect targets Source properties to properly transfer motion data
Parenting Layers for Final Integration
The final step involves connecting your graphic elements to the tracked null object through After Effects' parenting system. This relationship ensures that any layers you want to move with the tracked surface will inherit all the motion data seamlessly.
Import and add your graphic layer to the composition, positioning it precisely relative to the element you tracked in the original footage.
Set the tracking null object as the parent for your graphic layer using the Parent column in the Timeline panel. This creates the hierarchical relationship that drives the motion.
Save your project file to preserve all tracking data and layer relationships for future revisions.
Using parenting allows your graphics to inherit all transform properties from the tracked null, creating seamless integration with the original footage.
Final Setup Steps
Import and position your replacement graphics
Links graphic movement to tracked motion data
Preserve your tracking work and settings