I'm making a essential graphics. I have a title text that animates on screen. When I change text size or add text I can get the scale of the path to "somewhat" be the same size as the text.
I'm using a path so I can animate graphics to move across the path using expressions already.
The tracing path (I tried using a rectangle but I cannot seem to trace the top of it, so I could just convert size to size). I also have a line that animates and follows that tracing path that I want to get slightly larger and taller with the text.
For the path for the text I have:
tLayer = thisComp.layer("text"); w = tLayer.sourceRectAtTime().width; //got width of text s = tLayer.transform.scale; //got scale of text sTP = (s-100)/ 100; //converted scale to pixels > < 100 else 0; newW = (w + sTP) * w; //add extra pixels, if any, to the width y = value; x= newW; [x , y]
I tried the same for the path that animates across the text. I know
pixels = dimension x scale and
scale = pixels / dimension
The path below the text continues to be converted to pixels in the
I've removed it and took the width and divided it by 8 to give 100 % of the text but it gets too large on the ends when larger. I wanted to keep the line exactly the length of the text and add length on each of the -x, +x