-
sourceRectAtTime and line height on top/bottom
I’m using shape layers (rectangles) to position text (paragraphs) a certain way despite how many lines they are…like a template. I’m trying to match what’s happening to text in CMS. And things aren’t matching up exactly. I think it has to do with line height on text in CMS adding a padding to the bottom (and top?) of the last line, whereas in AE, there doesn’t seem to be any padding under the last line. I’m using sourceRectAtTime to get the shape to be the exact size of the text graph.
e.g., size is this:
x=thisComp.layer(“NUMBER”).sourceRectAtTime().width;
y=thisComp.layer(“NUMBER”).sourceRectAtTime().height;
[x,y]I can’t find anything related to difference between line height in AE and in other places (e.g., the CMS i’m using). And I’m not that experienced with expressions so I’m not sure if there’s a better way to do it that would include this padding, if it exists in AE.
If anyone has any idea what I’m saying and can help enlighten me, I’d greatly appreciate it!
(using version 14.2.1.34)