Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scale up from in point

  • Scale up from in point

    Posted by Greg Digenti on September 17, 2009 at 11:11 pm

    I’m trying to figure out how to make an expression similar to Dan Ebbert’s squash and stretch, where the action is controlled by the layer’s in point, but instead of getting bigger and bouncing back, I want the layer to start at about 10 percent smaller and ease into full size from the in point.

    I’ve tried making adjustments to Dan’s script, but the math is over my head.

    Xinlai Ni replied 16 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • Xinlai Ni

    September 17, 2009 at 11:26 pm

    If I understood you correctly, you need the scale at the inPoint to be 90 and after a while, it’s 100?

    startScale = 90;
    endScale = 100;
    stretchDuration = 5;
    linear(time, inPoint, inPoint + stretchDuration, startScale, endScale)

  • Greg Digenti

    September 18, 2009 at 12:02 am

    Thanks! I was able to make this work. I actually wanted it to scale up to the current size of the layer, not 100%, and wanted it to scale faster, so I adjusted your script to:

    startScale = .4;
    stretchDuration = .4;
    x=(linear(time, inPoint, inPoint + stretchDuration, scale[0]*startScale, scale[0]));
    y=(linear(time, inPoint, inPoint + stretchDuration, scale[0]*startScale, scale[1]));
    [x,x]

  • Xinlai Ni

    September 18, 2009 at 1:44 am

    sorry, my original expression doesn’t really work, it needs dim-2 array, but you get the idea.
    I hope you mean [x,y] at the end, and use scale[1] in both places in the y expression,

    Xinlai Ni

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