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

Text Animation Word by Word, but if there's only one word it start from the beginning

New Here ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

Hello,

So I'm currently making a graphic that animates text word by word but when there is one word it only appears half way through the animation. Is there anyway i could get it to always start with one word viable and then animate in?

 

Extra info;

I have the text animate using opacity where it goes from 0 to 100% within on frame. so the text pops in word by word.

 

If you need any more info im happy to give it.

TOPICS
How to

Views

209

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 ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

Text animator Units can be based on either percent (as yours is) or index (which counts the number of items it's based on). You can change it in the Advanced group of the selector's properties it's right above the Based On property. If you started it at 1 instead of zero that would do what you want, but you would have to adapt each text animation.

You could probably also do it with an expression since it is possible to count the number of spaces to figure out the number of words in a text layer.

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
New Here ,
Apr 28, 2024 Apr 28, 2024

Copy link to clipboard

Copied

That was a great help, would you know what the expression would be or be able to point me in the right direction.

I'm looking to calculate the amount of spaces so that the end keyframe is always the number of words instead of a fixed number.

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
New Here ,
Apr 28, 2024 Apr 28, 2024

Copy link to clipboard

Copied

here's the expression I have come up with but it seems to just set the value for the offset as a whole instead of just keyframe 2.

 

text.animator("Animator 1").selector("Range Selector 1").offset
wordsCount = thisComp.layer("Rolling Text").text.sourceText.split(/ ,| | \./).length;

key(2).value[1] = wordsCount;

 

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 ,
Apr 28, 2024 Apr 28, 2024

Copy link to clipboard

Copied

LATEST

I would suggest creating a new post specifically looking for an expression to do this. There are a couple of people here on the forums like Dan Ebbets who specialize in them.

 

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