Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects No motion when layer’s position is linked to the position of another layer in another comp

  • No motion when layer’s position is linked to the position of another layer in another comp

    Posted by Xavier Bonet on December 4, 2016 at 11:53 pm

    I’m trying to link a layer’s position in a parent comp to a layer’s position in a child comp, so that the one layer moves together with the other. I’m using the following expression for the first layers position:

    comp("Child Comp").layer("Second Layer").transform.position

    And what I’m accomplishing is getting the first layer to be at the initial position of the second layers that’s in the child comp. However, there’s no motion. The second layer will move but the first layer doesn’t follow.

    What am I doing wrong?

    Walter Soyka replied 9 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Walter Soyka

    December 5, 2016 at 10:14 am

    Perhaps Child Comp and its parent are offset in time — meaning the beginning of Child Comp happens at some time other than the beginning of the parent comp. If this is the case, your references to properties across comps will not work as you expect, because they are not referring to values at the correct time in the Child Comp. You’ll either need to adjust the comps so they both start together and remain in sync, or you’ll have to calculate the time offset and use .valueAtTime() to handle it.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

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