ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Text box anchor point from baseline

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Marko Suto
Text box anchor point from baseline
on Nov 21, 2018 at 9:32:53 am

Hello AE experts ☺

I have a text box with dynamic input (from data file) that I bottom aligned using anchor point script (as I don't know how many lines of text there will be):

[0,this.sourceRectAtTime(time).height]

But I need baseline align, not pixel align. Now, if there are "p,q,j,y" in the text, the layer will be lifted up by few pixels.

How to get the "sourceText.value.baselineLocs" or "textDocument.baselineLocs" in my script so they give me the position of the last line baseline (N-1)

Basicly something like this:

[0,this.sourceText.value.baselineLocs(N-1)]

Thanks!


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]