Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions inversing scale percentage

  • inversing scale percentage

    Posted by John Lacroix on December 6, 2007 at 11:49 pm

    If any of you have watched the Demon face tutorial by Andrew Kramer, you’ll know what I’m talking about here. He shows how to stabilize footage and then reverse that stabilization later but he only tracks position and rotation.

    What if you also track the scale?

    My question is, what should the math of the scale expression look like to reverse the effects of the scale created by tracking/stabilization. For example if on whatever frame the object in my precomp is 150% what math do I need to make it 66.66%?

    I had a programmer friend help me and we came up with this to make it work:

    [10000/comp(“TRACKED”).layer(“PRE TRACK”).transform.scale[0],10000/comp(“TRACKED”).layer(“PRE TRACK”).transform.scale[1]]

    but is there a easier way?

    John Lacroix replied 18 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 7, 2007 at 2:30 am

    Well, you could pretty it up a little, like this:

    s = comp(“TRACKED”).layer(“PRE TRACK”).transform.scale;
    [1/s[0],1/s[1]]*10000

    Dan

  • John Lacroix

    December 7, 2007 at 5:03 am

    Yes! That’s a nice cleaner way to do it. Thank you!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy