Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Layer following another with an offset in one axis

  • Layer following another with an offset in one axis

    Posted by Marc Hermitte on December 1, 2011 at 1:05 pm

    Hello! I’m pretty new to expression in AFX. I have this scene made of elements from a still that I took appart in Photoshop, each on Itès own layer. Some elements are the reflection of others, and I’d like to link them but have an offset only in the Y axis. As expression don’t “split” position in x, y and z, how can I modifiy this basic expression thisComp.layer(“BOOKS”).transform.position
    to make It work. If I try : thisComp.layer(“BOOKS”).transform.position*(0,-1.5,0) the expression isn’t invalided but works like the original one (same position) When I use : thisComp.layer(“BOOKS”).transform.position*-1.5, It works but the position get offseted in all the axis (x,y and z if 3d layer).

    Thank you!

    thisComp.layer("BOOKS").transform.position*(0,-1.5,0)

    Marc Hermitte replied 14 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 1, 2011 at 3:47 pm

    I think it’s going to look like this:

    p = thisComp.layer(“BOOKS”).transform.position;
    [p[0],-1.5*p[1],p[2]]

    Dan

  • Marc Hermitte

    December 1, 2011 at 3:49 pm

    Very cool! Thank you so much for your answer!!!

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