is `SourceRectAtTime()` possible for multiple lines of text as a one block of text i.e for one text layer with multiple lines and line breaks . I am looking for creating a typewriter text for a paragraph of text and that for each line of text the rectangle fits.
the only way I think you can do this is to use separate text layers for each line…
it would be nice to have one master text layer that you type into, and then expression on several other text layers that parse the ‘master’ text into separate lines bassoon newlines (\n or \r\n), but i’ve never been able to get after effects to detect a newline, just a hard return (\r).
text.sourceText.split(‘\r’); // will return the second line after a hard return (carriage return)
text.sourceText.split(‘\n’); // will will not return the second line after a newline wrap in area text
maybe some one has found a workaround to detect newlines and will chime in.