Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Floating with Shadow

  • Floating with Shadow

    Posted by Durwood Hibbard on August 21, 2011 at 6:03 pm

    Hi There,
    So I have a picture of a girl in a box, with a shadow under it. I have a pretty good float going on with the picture using wiggle(.5,5) and I can apply this same expression to the shadow but I would like the shadow to scale smaller when the box goes up and bigger when it comes lower. Is there a way to do this?

    I am not great at expression at all so if I question to your responses it is to learn not to doubt.

    Durwood Hibbard replied 14 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 22, 2011 at 1:37 am

    It’s difficult to say without knowing exactly what you’re working with, but in general, I think I’d use a Position expression like this to tie the shadow’s x position to the box’s x position:

    [thisComp.layer(“box”).transform.position[0],value[1]]

    and a Scale expression like this to tie the shadow’s scale to the box’s y position:

    yMin = 285;
    yMax = 315;
    sMin = 95;
    sMax = 115;
    y = thisComp.layer(“box”).transform.position[1];
    s = linear(y,yMin,yMax,sMax,sMin);
    [s,s]

    The first for parameters in the second expression are very dependent on the particulars of your comp.

    Dan

  • Durwood Hibbard

    August 28, 2011 at 1:17 am

    Thanks I will play around with it a little.

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