Skip to main content
Inspiring
September 22, 2023
Question

How to keep text centered when line count needs to change and there is position animation?

  • September 22, 2023
  • 2 replies
  • 312 views
 

https://pouch.jumpshare.com/preview/eiIyJoYvCAovvlDDxWhodlXNslRs_RJf5PEGFDBJmptWCoWUs1G6txRpqos-FOhC-itVOUGv3MfenrXhUabFYJdoMxu3kmrXxuAccklOoO4 

I have text that animates up from the bottom. Im setting up a MOGRT so i need this text to always be centered no matter how many lines are written in

I used a sourcerectatime expression for the anchor point, but because the position animator stretches the text box it does this weird jump at the end of the animation when the text box shrinks back to size again. Is there a workaround for this?

 

 

a = thisComp.layer("Text1").sourceRectAtTime(); height = a.height; width = a.width; top = a.top; left = a.left;

x = left + width/2; y = top + height/2; [x,y];

 

 

Thank you.

This topic has been closed for replies.

2 replies

Community Expert
September 27, 2023

Try modifying the expression to include the time when the animation finnishes. If the move takes 1.5 seconds, try this:

a = sourceRectAtTime(1.6);

If that does not solve the problem we need to see your timeline with the modified properties of the problem layer revealed. Please just drag the screenshot to the reply field and expand it so we don't have to download it. 

Inspiring
September 27, 2023

Post bump