Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Parenting text layers to other text layers

  • Sebastien Bruzzo

    November 25, 2024 at 2:32 pm

    Thank you very much ! 😄

  • Sebastien Bruzzo

    November 25, 2024 at 3:35 pm

    One more question about this example, if you’d allow me :
    in case the “other layer” is parented to another one, how would that change the expression ?

    Thanks 😉

  • Dan Ebberts

    November 25, 2024 at 3:48 pm

    That would be like this:

    gap = 20;
    L = thisComp.layer("other layer");
    r = L.sourceRectAtTime(time,false);
    p = L.toComp(L.anchorPoint);
    hisRight = p[0] + (r.left + r.width - L.anchorPoint[0])*L.scale[0]/100;
    r = sourceRectAtTime(time,false);
    myLeft = position[0] + (r.left - anchorPoint[0])*scale[0]/100;
    delta = hisRight - myLeft;
    value + delta + gap
Page 2 of 2

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