Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions vertical stretch

  • Posted by Mike Sev on February 10, 2009 at 4:37 pm

    hello AE gurus. I’ve been fiddling with an effect I’m trying to achieve for some time now and it’s driving me a little bit crazy. Maybe you guys can help me.

    I want to stretch my layer more and more progressively for every vertical line of pixels in the layer. For example, if my layer is 720 by 480. I want all 480 lines to be effected differently. so…

    line 1 will be stretched by 0.01 percent
    line 2 by 0.02
    line 3 by 0.04
    line 4 by 0.08
    and so on till 480.

    So far I can set my anchor point to 0 and stretch the image vertically but it doesn’t give me the progressive stretch I’m looking for.

    Is there an expression that I can add to my vertical scale that will give me a progressive stretch based on the pixel resolution?

    Thanks for your help,
    mike.

    Filip Vandueren replied 17 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Filip Vandueren

    February 10, 2009 at 5:24 pm

    Hi Mike,

    an expression can only calculate a value, that value is used in the scale-property.
    Since no value exists for what you want to do…

    You want to affect individual pixels, and for that you need a filter or an effect.
    I’m not yet familiar with CS4’s pixel bender, wich would allow you to write your own after effects filters.

    Another approach would be to create 480 copies of the layer, each masked so only one column of pixels is visible. Then scale each of the copies.

    This could be done using a script or expressions.

    I’ll get back to you.

  • Mike Sev

    February 10, 2009 at 7:31 pm

    thank you.

    I actually looked at the masking solution but here’s where I ran into trouble… I couldn’t figure out how to calculate how much the previous line of pixels had grown so that to move the next line up and make it seamless. maybe you know a way.

    As for pixel bender, I had never heard of it but it looks amazing. I’m getting a cs4 trial right now.

    mike.

  • Filip Vandueren

    February 11, 2009 at 9:09 am

    I’m not sure,

    but I think what you need can be achieved with the “CC Scale Wipe”

    try it on a layer with these settings:

    Stretch=0
    Center=[0,0]
    Direction=180

    now scrub the Stretch Value.

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