Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to apply gradient to scale of layer?

  • How to apply gradient to scale of layer?

    Posted by Michael Niemcewicz on May 28, 2007 at 6:43 pm

    Which effect would do that best? I’m using offset filter to have a bunch of images panning across the screen but I’d like to have them starting small at the right side of the screen and grow while they disappear on the left. I’m pretty sure a gradient map would do the trick but I can’t find the right filter.

    Michael Niemcewicz replied 18 years, 11 months ago 3 Members · 4 Replies
  • 4 Replies
  • Lord Scales

    May 28, 2007 at 6:55 pm

    If you have the position already animated, try this in teh scale property:

    sp = 50 //speed of scaling
    LR = time * sp
    minSc = [25, 25] //minimum scale
    maxSc = [150, 150] //maximum scale

    linear (LR, 0, thisComp.width, minSc, maxSc)

    It worked nice here, but this maybe nopt what you want.

  • Michael Niemcewicz

    May 28, 2007 at 7:18 pm

    This is cool however not what I was looking for. What I’m trying to achieve is an approximation of a curved video wall. I can turn the layer with an offset applied to it into 3D and play with the camera to achieve the sense of perspective but I was hoping I could try to use the gradient to create a fake curve. It may not work but first I need to figure out the simple way of mapping the gradient into scale.

  • Filip Vandueren

    May 28, 2007 at 9:56 pm

    You can use the displacement map effect, set to vertical displacement only. I advise to render in minimum 16bpc mode, otherwise the displacement map has too little information to get a nice smooth displacement.

    The trick is in setting up your gradient: I used a combination of a horizontal ramp, combined with a vertical ramp set to layermode ‘exclusive’. I could try explain why that works, but fact is: it just does. 😎
    This is just a 2d displacement, but it gives a 3d impression:

    it’s very tweakable: you can even alter the curve of your wall by adding a Curve-correction to the horizontal ramp:

    and here I’ve added som ‘very faux’ perspective by tweaking the vertical ramp:

    get the project file here:

    https://www.vandueren.be/forumstuff/curvedVideowall/

  • Michael Niemcewicz

    May 29, 2007 at 4:03 am

    Thank you! I think this will do the trick. Btw. I just realized I posted in the wrong forum, my apologies.

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