0

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[0];                //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[1];
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 value[0].

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

  • A little hard to understand exactly what you're asking. I don't understand why you use sTP = (s-100)/100; newW = (w + sTP) * w; not just newW = s * w /100; – stib Apr 1 at 5:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.