• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Explorer ,
Sep 22, 2023 Sep 22, 2023

Copy link to clipboard

Copied

 

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

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.

TOPICS
Expressions

Views

157

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

Post bump

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

LATEST

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. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines