Skip to main content
Participant
Nov 19, 2026 9:08 PM UTC
Question

How do I parent an object layer to a null object with a delay and offset?

I need help simplifying my project. I have several images that I want to have rotate along a circle path, but trying to keyframe 10+ layers to follow an individual path and have them end the animation at a different position so they’re all visible takes too much time. I thought it might be simpler to create a null object that goes along a circle path, parent the layers to the null, and then use expressions to set a delay and position offset.

Unfortunately I’m having a very hard time finding an expression that works correctly. Whenever I parent the layer to the null, the layer either follows the circle but off to the side slightly or the expression doesn’t work altogether. The closest I was able to get making the “delay” effect to work is using this expression:

delay = 3; // delay frames L = thisComp.layer("Null 1"); L.toWorld(L.anchorPoint,time - delay*thisComp.frameDuration)

But this doesn’t answer the problem of getting the animation to end in a separate position than the null object.

I’ve included a few screenshots to show what I have currently vs what the end result is supposed to look like after the animation has ended.

This is what I want the end result to be, where the individual leaves follow the null object but end the animation in different positions.
This is what the start of the animation looks like, with everything sharing a starting position and each child layer set to a frame delay, but the animation ends with everything returning to this starting position.

 

Can anyone tell me what I’m doing wrong? Barring that, is there a better/easier way to achieve what it is I’m trying to do? Thanks in advance!

    4 replies

    CORCTON34033231
    Community Expert
    Community Expert
    Nov 20, 2026 3:04 AM UTC

    Hi Edward — you're doing the same job twice, and that's the problem. Your expression already returns the null's position in comp space (that's what toWorld() does), and parenting the leaf to the null then applies the null's transform a second time. That's why the leaves follow the circle but sit off to the side.

     

    Pick one or the other:

    - Set each leaf's Parent back to None and keep the expression as-is — it will follow the null with the delay.

    - Or keep the parenting and delete the expression, and create the delay with keyframes instead.

     

    For the second part — ending in different positions — the expression as written makes every leaf end exactly where the null ends, because the delay only lags behind and then catches up. Add a per-leaf offset to the result:

     

    delay = 3;

    L = thisComp.layer("Null 1");

    off = [120, 0]; // give each leaf a different value

    L.toWorld(L.anchorPoint, time - delay*thisComp.frameDuration) + off;

     

    That keeps the delay, and each leaf finishes offset from the null instead of landing on top of it. If you want them spread evenly around the null, you can derive the offset from the layer index instead of typing a value for each leaf.

    Translate
    Participant
    Nov 20, 2026 4:02 PM UTC

    Oh, I see! I didn’t realize I didn’t have to parent to the null when using that expression. That makes a lot more sense. Thank you for the explanation!

    Unfortunately if I type in an offset value, it causes the leaf to start the animation in that position and then follows the null off to the side instead of on the same path as the null. Even typing “index” instead of the [120,0] offset value causes them to end up in the same starting position as the null. I removed the “parent” from each leaf layer, so I’m not applying the expression twice anymore. I can’t help but feel I’m still doing something wrong, somehow.

    Translate
    CORCTON34033231
    Community Expert
    Community Expert
    Nov 20, 2026 6:15 PM UTC

    You're not doing anything wrong — that's exactly what a constant offset does: it shifts the leaf's whole path by [120, 0] from the very first frame, so the leaf travels on a parallel path beside the null instead of on the null's path. If you want the leaf to start on the null's path and only end up offset, the offset has to grow in over time. Try this version:

     

    delay = 3;

    L = thisComp.layer("Null 1");

    off = [120, 0]; // give each leaf a different value

    ramp = linear(time, inPoint, inPoint + 1, 0, 1);

    L.toWorld(L.anchorPoint, time - delay*thisComp.frameDuration) + off * ramp;

     

    The ramp goes from 0 to 1 over the first second of the layer, so the leaf starts right on the null's delayed position and drifts out to its offset. Change the 1 to a longer time if you want it to spread more slowly.

     

    On "index": index is just the layer's number in the timeline (2, 3, 4...), so off = index only shifts the leaf a couple of pixels — that's why they still landed on the null. To spread them with index, multiply it, for example:

     

    off = [(index - 1) * 120, 0];

     

    That gives 120, 240, 360... pixels for the leaves below the null (assuming the null is layer 1). Use a negative multiplier, or (index - 3) * 120, if you want some leaves on the other side.

    Translate