Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Test Posting Code Here Child layers follow null’s movement with delay.

  • Child layers follow null’s movement with delay.

    Posted by Mooshoo Fasa on June 8, 2018 at 3:15 pm

    I’ve been surfing the web, looking for an expression that I can use to have layers follow a null’s movement (while keeping each child layer in its relativeposition) but with a time delay. I’ve made this work perfectly with scaling and opacity, but I’ve have a tough time with position. The closest simple solution I’ve found is this:

    delay = thisComp.layer(“Adjustment Layer 7”).effect(“Child Delay”)(“Slider”)
    p = thisComp.layer(“Move”).transform.position
    value + p.valueAtTime(time – delay*(index – 1)) – p.valueAtTime(0);

    The problem I have with this expression, is that I need the child layers to end their move at a specific spot. So, I place them there, set a keyframe there, and then set a keyframe at the start and move them off screen. But my child layers are offset. Here’s an example: Here’s an example of what I mean.
    Is there a better expression that would allow the children to be controlled like when you link them to a null? For example, like this:
    https://www.youtube.com/watch?v=zbSXz5Mwp-I
    All the other expressions I tried would make the child layer move to the exact (x,y) position of the null as soon as I applied a time delay to the expression.

    Mooshoo Fasa replied 8 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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