Activity › Forums › Adobe After Effects Expressions › Parenting text layers to other text layers
-
Parenting text layers to other text layers
Dan Ebberts replied 2 weeks, 3 days ago 4 Members · 13 Replies
-
Sebastien Bruzzo
November 25, 2024 at 3:35 pmOne 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 pmThat 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
Reply to this Discussion! Login or Sign Up