FORUMS: list search recent posts

Animate object along animated path

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Robin Munshaw
Animate object along animated path
on Oct 12, 2019 at 12:33:49 am

Hi there,

I've created a path that has vertices animated to follow an underlying map. The map is a slow zoom in on Google Earth looking at the ground at about 45 degrees, so each vertex of the path is keyframed to follow a point on the map to allow for perspective shift during the zoom. This path will be an animated route on the map.

I'm now trying to make a glowing dot follow the path as it's revealed - is there a way to make an object follow a path that is itself animated with keyframes? The only tutorials I've found show how to paste a static path into an object's position attribute, then animate the object along that fixed path, but this method doesn't allow for a path with animated vertices.

Thanks for any help!


Return to posts index

Dan Ebberts
Re: Animate object along animated path
on Oct 12, 2019 at 6:55:11 am

Assuming that you're using Trim Paths to set the end point of your path, an expression like this (for the position of your dot) should track an animated path:

L = thisComp.layer("Shape Layer 1");
path = L.content("Shape 1").content("Path 1").path;
pct = L.content("Shape 1").content("Trim Paths 1").end;
L.toWorld(path.pointOnPath(pct/100,time))


Dan



Return to posts index

Robin Munshaw
Re: Animate object along animated path
on Oct 13, 2019 at 5:59:33 pm

Ah this worked perfectly, thank you so much!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]