After Effects High Pass Script

High Pass Script

Updated: 4/19/16 (see “High Pass for 3D motion tracking explained” below)

When most people in post-production hear the word High Pass filter, they immediately think of the Photoshop filter plugin, or the process that helps sharpen images or video footage after the fact. Others may think motion tracking. Wait, motion tracking? Why? What? We’ll get back to that in a moment. For those unfamiliar, a High Pass filter will alter an image into this neutral grey tone with edge details peaking into the black or white range.

High Pass example

This image is then set to Overlay mode on top of a duplicate of the source footage. With some refining, you can effectively sharpen the details in your source media.

High Pass sharpen_before_after

It definitely comes in handy quite often for soft focus videos, but when it relates to motion tracking, your first thought might be “Oh, a sharper source means better track”. While that can certainly be true, I am more referring to the High Pass filter being used in a way that brings out hidden details within a piece of footage, therefore turning them into higher contrasting pixels. If you’ve done any motion tracking, you’ll know that high contrast is a great thing to have for a tracking point.

High Pass trackdetails

This of course has limits within a fluctuating range, and pushing the look too far will just make things look like a very badly Xeroxed copy, and not really help at all. When used just right however, it can save you from failed solve after failed solve. This holds true more for 3D tracking, where precision is key to getting a solid camera or object solve. This technique can also save your butt when you are given footage of a green screen that didn’t have any trackers put on it. Every nick, scuff, smudge, and seam will be your best friends at that point.

I know from personal experience that SynthEyes has a High Pass option built natively into the application, which is very handy, and I almost use this option exclusively when tracking. I can’t really speak to the other trackers out there since I don’t use them often or at all, but there are many available. Just to name a few… After Effects, Mocha Pro, Cinema4D, fayIN, The Foundry CAMERATRACKER, NukeX CameraTracker, Autodesk MatchMover, PFTrack, Boujou, and 3DEqualizer.

Of those I do know, After Effects does not have a stock High Pass filter. However, there is a process of which the credit goes to Maltaannon for the original technique. He made a video tutorial back in 2008 on how to replicate the filter in After Effects by a layer blending mode and the use of stock plugins. You can still download his video tutorial, if you have a Flash player (that is).

A few years after he made the video I came across it when needing a High Pass filter for some tracking I was doing in After Effects. I eventually needed to use the technique so often that I got tired of making the look manually. I just ended up coding a script to do it for me. I added a control layer for the plugins and labeled everything to make it easy to work with. I’ve been using this script ever since, and recently decided to finally share it with everyone, for free. Not only is it free, but it is also open source, which means that you will be able to view every line of code that makes it work.

To install the script you just need to place the jsx file into your Scripts folder. Running the script can be done by clicking the “File”, “Scripts” menu, then choose Highpass.jsx from the list. If you have ft-Toolbar you can just make it a simple button click to apply it to footage, or you can also assign the script to a shortcut key too by changing the Shortcuts document for After Effects. You can see this video for instructions on how to do the shortcut key here. Just fast forward to the 8:12 mark in the video.

Script install locations:
On Mac:
Your boot drive/Applications/Adobe After Effects version#/Scripts/

On Windows:
C:Program Files\Adobe\Adobe After Effects version#\Support\FilesScripts

UPDATE: There seemed to be a bit of confusion as to what I meant about using High Pass for tracking, so I put together this overview explaining in more detail about the process. Hopefully this video will help eliminate any miscommunication on my part. Link to the sample footage I used in the example can be found here Hollywood Camera Work

Download the script here: High Pass Script.


Was This Post Helpful:

0 votes, 0 avg. rating

David Torno

David Torno is a Visual Effects professional based in Los Angeles, California. His work over the years has included commercials, feature films, music videos, and multimedia projects. During his free time, David enjoys expanding his knowledge in Visual Effects by learning new softwares and techniques that are being used. Along the way he also contributes to the visual effects community by offering helpful tools, and tutorials that creative professionals around the world can benefit from.

Leave a Reply

4 Comments on "After Effects High Pass Script"

Notify of
avatar
Sort by:   newest | oldest | most voted
trackback

[…] Pro Video Coalition for the High Pass After Effects Article, complete with the free […]

Ed

Why would we want to use say AE’s Sharpen effect for the same tracking purposes instead of this High Pass trick? What is the difference? Isn’t it easier?

David Torno
David Torno
If all you want to do is just sharpen the image, then yes, use the stock Sharpen AE plugin. That would be easier. The primary purpose of this High Pass option is in regards to how it can bring out hidden details in your image to assist in tracking more difficult scenes. High contrast is what most point tracker algorithms look for, so using this black and white High Pass image as your source footage will help when there isn’t much detail to easily track. Like a green screen without any tracking markers for example. This technique won’t always work,… Read more »
Elliot Noteware
Elliot Noteware

Very cool, thanks for sharing 🙂

wpDiscuz