Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for X position and shadow question

  • Expression for X position and shadow question

    Posted by Stuart Baker on March 15, 2008 at 10:10 pm

    I have an animated ping pong ball on real footage of a table tennis match and I need to set up an expression of the same ball so that this ball copy follows the X position but not the Y position of the ball for the shadow.

    This is going to serve as the shadow of the ball (probably use the ‘drop shadow, shadow only’ effect): so I want the shadow to follow the balls path and then use opacity to show the ball’s shadow when it hits the table, obviously gaining in opacity when it nears the table.

    Can anyone tell me what the expression would be just for the x position and can anyone suggest a good way to make the shadow if my way is stupid? I was thinking maybe the drop shadow effect or perhaps set up a plane in 3D for the shadow to fall on?

    thanks!

    Lord Scales replied 18 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Lord Scales

    March 16, 2008 at 1:51 pm

    Try this for the position of the shadow layer:

    ball = thisComp.layer (“Ball”).position;
    [ball[0], value[1], value[2]]

    Lord Scales

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