-
sourceRectAtTime expression
Hi,
I’m trying to get a sourceRectAtTime expression to work out the longest text box length and use that to create a box behind.
However, no matter how I change the s= value, I can’t seem to work it out.Any help would be greatly appreciated!
The current expression below:s = thisComp.layer("TOP LINE TEXT LONGER STILLER") = if((thisComp.layer("TOP LINE TEXT LONGER STILLER")>thisComp.layer("TEXT 2”)) else thisComp.layer("TEXT 2”);x = s.sourceRectAtTime(time-s.inPoint,true).width;
y = height = 104;
[x , y]
Thanks!