-
sourceRectAtTime with a paragraph text layer
I’m trying to create a text layer that scales relative to the dimensions of any given comp regardless of aspect ratio. I’ve written the following expression and placed it on the scale attribute of a “paragraph” text layer (paragraph for word-wrapping if needed). The expression works, but seems to ignore the bounding box of my text and looks only at the text written. I’d like it to have my expression scale based on the bounding box dimensions. Any help from all you expression whizzes out there is greatly appreciated! Thanks.
box = thisLayer.sourceRectAtTime(time);x = (thisComp.width/box.width)*100;
[x,x]