Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Simulating a growing shadow

  • Simulating a growing shadow

    Posted by Kim Petersen on February 20, 2009 at 9:35 pm

    Hi there,

    perhaps you expression gurus can help with this one. I need to simulate a shadow growing and I would like to see if this can be done with expressions only.

    I have a flat product image moving on the y axis. Now, as the object comes closer to the floor (the floor doesn’t exist. The shadow only hints that it exists). I want the shadow to grow as well.

    Any ideas?

    Thanks,
    Kim

    Kim Petersen replied 17 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Brendan Mccullough

    February 20, 2009 at 9:57 pm

    Make a new solid in whatever color you want your shadow to be, double click the elliptical mask tool to create a new circular mask on it, feather it out (make to look shadowy, if that’s a word 😉 ), make this layer 3D, and orient it underneath your product layer to your liking.

    Then, link the Y position of the product to the scale (and maybe even the opacity) of the shadow layer using the linear() (or ease()) function something like this:


    productPos = pickwhip to your product layer's y-position;
    bottom = y value of product at rest on the 'floor';
    top = y value of product as high as you want to make it;
    shadowSmall = whatever size the makes the shadow look correct when the product is at rest;
    shadowLarge = whatever size makes it look correct when the product is in the air. Eyeball it;
    linear(productPos, bottom, top, shadowSmall, shadowLarge);

    Apply the same concept to opacity. Dig it?

  • Kim Petersen

    February 21, 2009 at 8:59 am

    I dig!

    Thanks Brendan 🙂

    /Kim

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