-
Capture number of lines in Paragraph Text for expression
I’m looking for a way to find the number of lines in a paragraph text box.
The text is dynamically generated when I create a new composition or modify the composition name. It pulls the text from TSV data in a separate composition, and all the text flows/wraps in the paragraph text to create anywhere from 1 to 8 lines of text. I have a null object with a slider that I manually input the number of lines (needed for an animation unrelated to this question), but having this variable propagate automatically would save me time, as every week I need to update this slider within multiple compositions.
I looked into the following options :
1) Range Selector : obviously knows how many lines (“selector(“Range Selector 1”).end“) with “index” and “lines” set, but once set, the “end” number does not update with the new text.
2) Expression Selector : knows how many lines and uses the variable “textTotal” to do the math, but I cannot figure out how to extract that variable for use elsewhere in the composition.
Can’t seem to find an answer to this but I feel like it should be possible; and maybe I am way off and After Effects just doesn’t allow for this. Any help appreciated.