Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Can anyone tell me why this simple expression in the position property is not working?

  • Can anyone tell me why this simple expression in the position property is not working?

    Posted by David Cabestany on July 13, 2015 at 6:16 pm

    As you can see below, I’m trying to link the position of one layer in one comp to the position of another inside a different comp, (in fact, it’s a nested composition of the main comp where I have the one I want to link).

    The expression is doing nothing else than linking both position properties and that’s it. But although it’s working, the values returned have nothing to do with the referenced layer and in fact the objects move in opposite directions.

    Can anyone help me understand why this is happening?
    Thanks.

    comp("coche e3d").layer("null porsche").transform.position

    David Cabestany replied 11 years, 1 month ago 2 Members · 8 Replies
  • 8 Replies
  • Dan Ebberts

    July 13, 2015 at 6:22 pm

    Is time remapping involved?

    Dan

  • David Cabestany

    July 13, 2015 at 6:27 pm

    No, but the layer that I’m trying to link to is a null that drives the xyz position of an object inside Element 3D, could that be it? They belong to different 3D spaces.

  • Dan Ebberts

    July 13, 2015 at 7:16 pm

    I don’t know about the Element 3D angle, but is it possible that you have more than one comp named “coche e3d”.

    Dan

  • David Cabestany

    July 13, 2015 at 7:19 pm

    I do, but it’s not being used in this comp, it’s part of a different version, I have a 30″ and 15″ version within the project, however I made sure it looked at the correct one by linking to a layer within the same comp and only to search for a comp across the entire project.

    D.

  • Dan Ebberts

    July 13, 2015 at 7:37 pm

    That might be your problem, if there’s a comp with an identical name closer to the top of the project bin. The expression will use the first one it comes to, no matter which one you linked to with the pick whip.

    Dan

  • David Cabestany

    July 13, 2015 at 7:43 pm

    The project bin? Really? Didn’t know that but it seriously throws a wrench on my project.
    Never knew expressions worked with project bin elements, I always thought they were comp/timeline based.

    Thanks Dan.

  • Dan Ebberts

    July 13, 2015 at 8:14 pm

    I just ran a test and it apparently isn’t necessarily the first one in the project panel (so I’m not sure what the search order is), but it also isn’t necessarily the one you pick whip to if there are multiple comps with the same name.

    Dan

  • David Cabestany

    July 13, 2015 at 8:41 pm

    Thanks Dan,

    It just doesn’t make sense that pick whipping doesn’t guarantee the correct item is being used, I could understand if I type the name in the expression, but the pick whip should be able to recognize which object it’s being used.

    Anyway, I solved it with keyframes, no big deal, but I still think this is a huge limitation for expressions.

    I appreciate you taking the time to look into this.

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