Reverse Scale Expression

In the Demon Face Warp Tutorial we learned to reverse track by adding expressions. One expression reversed the rotation by multiplying it by -1.

Now I had a question about reverse scaling… I didn’t know, until now:

Basically you create a variable inside the final comp where you apply the reverse rotation expression but instead we alt click on the scale and write
m=100/comp(“yourPreComp”).layer(“originalLayer”.transform.scale[0];
value*m

So if m=400%, then 100/400=.25, and .25*100% is 25%. And 25% of the now 400 percent image is now back to the original size.
To create the layer variable, you can pickwhip the scale of the precomposed layer as shown in the tutorial. Then add [0] so that you only use one of the scale values for the width.

Try it out and hopefully you can use it in the future.

EDIT for Clarification: When you motion stabilizing something with 2 points you can calculate the rotation and scale from the Motion Tracking Menu, this scales up or down as needed to keep the 2 points the exact distance appart. Thanks for bringing this up Kyle, I’m tired too.

POSTED:
11 years ago
RECENT POSTS
Live Presentations and NAB Sale!
This week I’ll be in Las Vegas for NAB 2018 and Adobe is going to be broadcasting the presentations LIVE! Be sure to follow us on Twitter or Instagram for the links! If you are at the show, be sure to stop by the Adobe booth! LIVE Presentations: Monday & Tuesday at 2PM! PST NAB […]
New Tutorial: Cinematic Title Design: Fantasy FX!
In this exciting new Tutorial Series, we’ll learn how to create this cinematic title all inside of After Effects! This procedural effect can be customized with any logo and even reacts to environment lighting! This tutorial is jammed-packed with ways to customize the Bevel and create endless variations! Watch on youtube in HD! Download Free […]
Cinematic Titles Tutorial Teaser!
One step closer! Here is what we will be creating in the new tutorial series! Of all the tutorials I’ve made, this one has evolved the most from it’s conception (several months ago) and has even surprised me at how far it could go! Especially with the cracks and growing moss…. Many strange tricks went […]
The One-Two Punch!
“Everyone has a plan until they get punched in the mouth!” Alright! I blew my deadline! But I’m on it!!! I was feeling TOO good, too confident and thought I could get these two tutorials done faster! But alas it is only a day or two away! I promise awesome useful tips! My pencils down […]
PLUG-INS