-
Aligning two text layers to be centered vertically
Hi all, currently looking for a way to align two text layers together so they will remain centered vertically even if the amount of text changes. What is the best way to go about doing this?
Using this expression at the moment to combine them although I haven’t found a way to center them both-
gap = 10;
L = thisComp.layer(“text”);
r = L.sourceRectAtTime(0,true);
y = L.position[1] + (r.top + r.height – L.anchorPoint[1])*L.scale[1]/100 + scale[1]*height/200 + gap;
[value[0],y]Thank you!
