-
Expression that recognises 2 lines of text
Hi,
Im trying to create a text box, using sourceReactAtTime that follows my text based on how many characters and lines there are. I’ve used this tutorial: https://www.youtube.com/watch?v=CVliDoNgoCg
Which is very helpful but seeing as my expression knowledge isn’t vast I’m not sure how to word my code to allow the shape layer to clip to line one and use possibly another to clip to line two.What I have:

Vs
What I want it to look like:

I hope that this makes sense.
These are the expressions that I am using that Ive gotten from the tutorialvar s = thisComp.layer("Subtitles");
var w = s.sourceRectAtTime().width/2;
var h = s.sourceRectAtTime().height/2;
var l = s.sourceRectAtTime().left;
var t = s.sourceRectAtTime().top;[w+l,h+t]
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.