-
aligning a layer under the last line of a multi line text
Hi all, I have come close with a previous expression I have used but there is something missing. I believe the expression is looking at the height of the multiline text, but the flaw is if I type an accented letter ( example: the letter É, ¨¨Ç or a simple comma ) this changes the overall height and therefore the layer I would like aligned underneath gets moved down a few pixels more. I would like to avoid this.
my main layer is called ”text” ( which build downwards )
and the layer I would like to have appear a fixed number of pixels under the last line is called ”name”
here is my expression on the anchor point of the ”name” layer
sourceSize = thisComp.layer(“text”).sourceRectAtTime(time, false);
T = sourceSize.top;
L = sourceSize.left;
W = sourceSize.width;
H = sourceSize.height;
([L,T-H])
Thanks for any advice.
Adam