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:
10 years ago
RECENT POSTS
I'm Sorry Shape Layers! I love you!
I must confess… I was never a big fan of shape layers…  we just didn’t get along.  I was used to using masks but suddenly (around AE CS3) the same mask tool began creating Red vector shapes. At first, they seemed cool enough but after accidentally adding shape layers to my comps, instead of masks, I lashed […]
Visualization Experiment and new Renders
Just playing around with a new After Effects experiment without using any 3rd Party plug-ins! I need to refine some parts of the effect but I really want to make a tutorial for it ASAP! Here are some other projects you may have missed! Using Element 3D bump mapping to create some Gold coins and […]
New Tutorial: Realistic Rain Drop FX!
In this tutorial we’ll use After Effects to create a realistic water effect without any 3rd party plug-ins! Great for adding atmosphere to a rainy scene or title. This effect is fully customization and can be used to create many cool FX! In this tutorial: Create a dripping water displacement map Simulate realistic camera DOF […]
Destruction Experiment!
What is this thing! I’ve basically combined a bunch of stuff into one experiment! I might have been inspired by the amazing planet explosions from The Force Awakens but wanted to see if I could get a cool version inside Element 3D. Few Notes on this experiment; I added smoke elements, shockwaves using CC Sphere, and even […]
PLUG-INS