Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Stanley Gucwa-bucasas on February 14, 2008 at 10:13 pm

    I wrote an expression to reverse the zoom in the original video.(original is 720×480 but i put it in a 320×240 comp so there is wiggle room). I tracked the scale in the original, precomped the movie, then tried to reverse the scale of the new composition. however, the expression only effects the width and not the height parameter. can anyone help me out?

    In the scale parameter of precomp:

    a=(what the pick whip told me) Original video at 100% scale

    b=(a-100) which gives me the difference in scale

    a-(b*2) gives me the number i need. (when scale track goes up to 110, precomp scale goes down to 90.

    when i use this, the width value of the scale is correct but the height value is not.
    any help is appreciated.

    thanks

    Dan Ebberts replied 18 years, 6 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    February 14, 2008 at 10:42 pm

    It sounds like you just need to apply it to both dimensions, like this:

    a=(what the pick whip told me) Original video at 100% scale
    b=(a-100);
    s = a-(b*2);
    [s,s]

  • Stanley Gucwa-bucasas

    February 14, 2008 at 11:10 pm

    thanks! however, the height value is a -100.

    i tried s,-s but then the width ended up at -100.

    probably something wrong with my math but thanks for getting both my scale parameters to 100.

  • Dan Ebberts

    February 14, 2008 at 11:19 pm

    OK – sorry. Try this:

    a=(what the pick whip told me) Original video at 100% scale

    b = a – [100,100];

    a – b*2

    Dan

  • Dan Ebberts

    February 14, 2008 at 11:59 pm

    The more I think about it, the more I’m wondering if you aren’t looking for something like this:

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

    Dan

  • Stanley Gucwa-bucasas

    February 15, 2008 at 8:55 pm

    after effects doesnt want to accept that code. thanks for the help thoug, ill get to the bottom of this one day.

    stan

  • Dan Ebberts

    February 16, 2008 at 10:55 pm

    The exact error message would be helpful. 🙂

    A couple of possibilities. Maybe you’re using an older version of AE. If so, this should work:

    s =1/ this_comp.layer(“other layer”).scale[0];
    [s,s]*10000

    You also, of course, have to replace ‘other layer’ with the name of the layer that you want to control the scale with.

    Dan

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