Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Reverse Scale Keyframes?!?!

  • Reverse Scale Keyframes?!?!

    Posted by Andrew Robinson on December 5, 2008 at 2:41 pm

    Hi Guys,
    I’m kinda new to the world of expressions but I really want to start using them more often (would save me a LOAD of time at work. Anywho, at the moment I am working on some green screen work (Kinda like a Sin City recreation for an advert we are working on) I have had to track some actors in a car (using Mocha AE (for CS4)) and it has done an amazing job at tracking so i can stabilize this crazy Jib/dolly shot. At them moment, the scale keyframes shrink down the footage (mirroring the scale of the car as it moves back into the distance) but what I want to do is reverse the keyframes (with an expression) so the portions of the car stay the same (scale wise) as the camera moves back (so it should result in an effect similar to a dolly-zoom).

    so in short, I want to reverse the scale keyframes so that instead of the footage getting smaller, its gets larger.

    Could anyone give me any help/pointers?

    Thanks,
    Andi

    Dan Ebberts replied 17 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    December 5, 2008 at 4:47 pm

    It should just be 10000 divided by the scale you want to reverse, like this:

    s = thisComp.layer(“scaled layer name”).transform.scale;
    [10000/s[0],10000/s[1]]

    Dan

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