Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Using a ramp to affect scale and opacity values?

  • Using a ramp to affect scale and opacity values?

    Posted by Jordan Montreuil on April 25, 2008 at 1:03 am

    I am working on a motion graphic and I got in over my head. I have 70-80 different texts and I am supposed to make them drop from the sky. My idea was to keyframe scale and opacity to make them look they are falling into view but I really don’t want to key frame all of them. And then offset those key frames.

    Is there a way I am animate a ramp over my text and have the values of the text change from one value (white) to another value (black)? Sort of like a luma matte that also affects scale?

    Jordan Montreuil replied 18 years ago 2 Members · 5 Replies
  • 5 Replies
  • Darby Edelen

    April 25, 2008 at 1:37 am

    You could use the new image sampling expression function in CS3 to sample a ramp and scale your layer according to where its anchor point falls on the ramp… Something like this:


    min = [10, 10];
    max = [300, 300];
    l = thisComp.layer("Ramp");
    p = l.fromComp(toComp(anchorPoint));

    v = rgbToHsl(l.sampleImage(p))[2];

    linear(v, 0, 1, min, max);

    Apply that to your scale property, change the ‘l’ variable to the layer you want to sample, and pick new values for minimum and maximum scale.

    Darby Edelen
    Lead Designer
    Left Coast Digital
    Santa Cruz, CA

  • Darby Edelen

    April 25, 2008 at 1:42 am

    I should add that this only samples at one point and scales the entire layer… So it’s not the same as a luma matte which changes the opacity on a per-pixel basis. If you want to fake scaling of a layer on a per-pixel basis you’ll need some fancy displacement mapping techniques.

    Darby Edelen
    Lead Designer
    Left Coast Digital
    Santa Cruz, CA

  • Jordan Montreuil

    April 25, 2008 at 2:04 am

    I’m afraid that was going to be the answer. Thanks for your help but it doesn’t look like that is going to work.

    Time to put on a Foo Fighters concert DVD and my sweat pants. Its going to be a long night.

  • Darby Edelen

    April 25, 2008 at 3:33 am

    So now I’m confused… The expression didn’t do what you wanted it to? Maybe I didn’t understand what you’re attempting to do. Do you actually want the layers to bend and distort or only to scale? Where are they supposed to be falling from/to?

    Darby Edelen
    Lead Designer
    Left Coast Digital
    Santa Cruz, CA

  • Jordan Montreuil

    April 25, 2008 at 1:40 pm

    I might read your post wrong. I ended up doing it the hard way but I didn’t take as long as I thought it would. Thanks for your help though. I will probably try your advice at the end just to see how it works.

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