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

How would I go about animating text to follow next to the end of a trim path that's changing scale?

New Here ,
Nov 13, 2023 Nov 13, 2023

Copy link to clipboard

Copied

Hi there!

I'm trying to figure out a way to have text on a graph follow the end of a line that's changing scale. The line is animating on through trim paths, and I need the text to follow it, as a label for the line essentially. I need the text to stay the same dimensions as well.

 

I'm relatively new to After Effects, so I'm not too familiar with expressions. Is there an easy way to do this that I'm missing?

TOPICS
Expressions , How to

Views

184

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

correct answers 1 Correct answer

Community Expert , Nov 13, 2023 Nov 13, 2023

Assuming that you're animating the End property of your Trim Paths and that your line is actually a path, something like this should get you close:

offset = [50,20];
L = thisComp.layer("Shape Layer 1");
p = L.content("Shape 1").content("Path 1").path;
pct = L.content("Shape 1").content("Trim Paths 1").end/100;
L.toComp(p.pointOnPath(pct)) + offset

Where offset determines how close to the end of the line the text stays.

 

 

Votes

Translate

Translate
Community Expert ,
Nov 13, 2023 Nov 13, 2023

Copy link to clipboard

Copied

Assuming that you're animating the End property of your Trim Paths and that your line is actually a path, something like this should get you close:

offset = [50,20];
L = thisComp.layer("Shape Layer 1");
p = L.content("Shape 1").content("Path 1").path;
pct = L.content("Shape 1").content("Trim Paths 1").end/100;
L.toComp(p.pointOnPath(pct)) + offset

Where offset determines how close to the end of the line the text stays.

 

 

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 ,
Nov 14, 2023 Nov 14, 2023

Copy link to clipboard

Copied

LATEST

This worked perfectly! Thanks so much!

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