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

animating consistent speed between varying distances in ae

New Here ,
May 23, 2025 May 23, 2025

Hi! 
My problem seems a bit complicated, and i'm not sure there even is a solution for what i'm trying to do, but i thought i'd give it a shot and ask.


I'm currently working on an animation showing the route deviation of a tram line for the duration of a construction site. I have mapped the route in illustrator and exported layers to use in after effects.

The tramline i want to show is on its own layer and i am using a mask on that layer to "uncover" the line bit by bit. So far i have just been unmasking one station of the route at a time, setting one keyframe per second.

This screenshot shows the tram line i am uncovering and the mask-outline in red:

Screenshot 2025-05-23 092933.png

and here is a screenshot of my keyframes: 

Screenshot 2025-05-23 093006.png

Like i said i've just placed them one second apart so far, because it's easiest that way, so i could focus on animating the mask path. 

 

Of course now, because the distances between the stations on the map are vairable, this means the speed of the line uncovering looks faster or slower, depending on how much the mask has to move within one second.

I would like the speed to look more consistent, since a tram in real life doesn't travel faster or slower based on the distance to the next station. But if i manually move the keyframes one by one on the timeline to make the speed look sort of constistent, i will take ages to finish this (especially because i have more than one tram line to do)

 

Now my question:

Is there a quicker way i can take these keyframes and space them out to make the visual speed of the line more consistent?

or is there an entirely other method i could do this animation that makes more sense for what i'm trying to do?

 

infos: I'm working on a hp elitebook with windows 11, adobe after effects 2025

TOPICS
How to
178
Translate
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 2 Correct answers

Community Expert , May 23, 2025 May 23, 2025

The illustrator path can be converted into a shape layer path in AE. 

Just right click on an imported vector layer and choose Create > Create Shapes from Vector Layer

Then use the Trim path effect (located in the Add menu) in the shape layer as @Mikael5FE7 suggested.

Translate
Community Expert , May 24, 2025 May 24, 2025

Instead of trying to animate a mask, add a shape layer and use the pen tool to draw a path with no fill over the route. Then, turn the shape layer into a track matte for Layer 6 and add Trim Paths to it. With just a couple of keyframes, you can now reveal the line at a constant speed or speed up or slow down sections.  

Translate
Explorer ,
May 23, 2025 May 23, 2025

Try drawing the complete route with a single shape in a Shape layer. Twirl down to the actual path of the layer and select Trim Path from the Add dropdown menu. Then animate the out point to reveal the route from start to finish in a consistant speed.

Also consider playing around with Create Nulls from Path of the Window menu. Selecting the path and hitting Trace Path will create a Null that animates its position along the path (0% in the beginning, 50% in the middle, 100% at the end).

Translate
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 ,
May 23, 2025 May 23, 2025

The illustrator path can be converted into a shape layer path in AE. 

Just right click on an imported vector layer and choose Create > Create Shapes from Vector Layer

Then use the Trim path effect (located in the Add menu) in the shape layer as @Mikael5FE7 suggested.

Translate
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 ,
May 24, 2025 May 24, 2025
LATEST

Instead of trying to animate a mask, add a shape layer and use the pen tool to draw a path with no fill over the route. Then, turn the shape layer into a track matte for Layer 6 and add Trim Paths to it. With just a couple of keyframes, you can now reveal the line at a constant speed or speed up or slow down sections.  

Translate
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