Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression aggression..

  • Expression aggression..

    Posted by Kelly Johnson on July 8, 2005 at 5:25 pm

    Just getting into them. I have a small graphic on a layer A of which I want the x position property to coincide with the x position of another keyframed graphic on layer B.

    I reveal the position property of Layer A and Layer B. I select Position of Layer A, select Add Expression and the pickwhip appears. I drag the pickwhip of Layer A to the first (x) position property of Layer B.

    This expression appears:
    temp = thisComp.layer(“leafOnly.psd”).position[0];
    [temp, temp]

    The problem is that though my graphic on Layer A is set at a particular Y value at the beginning, as soon as the expression is set, the graphic goes to a 0,0 position. So, when the time plays, the graphic from Layer A start up at the diagonal left corner and comes down to match the graphic on Layer B.

    What gives?

    I want the Y value of Layer A to be fixed and only the X position to be…pickwhiped.

    Kelly Johnson replied 21 years ago 2 Members · 2 Replies
  • 2 Replies
  • Steve Roberts

    July 8, 2005 at 6:38 pm

    Because you highlighted the position property of layer A, the pickwhip applied the expression to the entire position property of layer A.

    If you had first written this for position on layer A:

    [position[0],position[1]]

    then highlighted position[0], then dragged the pickwhip to the x position of layer B, the proper expression would have only been applied to position[0], since it was highlighted.

    Try it!
    Steve

  • Kelly Johnson

    July 8, 2005 at 8:49 pm

    Cool! Thanks Steve it worked exactly as you described.

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