Activity › Forums › Adobe After Effects › how make object follow path
-
how make object follow path
Posted by Darasmith on July 18, 2005 at 3:31 pmis it possible to make aon object follow a path
for example i want to make a line that follows a path i have drawn in illustrator and am using stoke in to do it so is it possible to place a graphic at the top of this that looks like its drawing the lineDara
Raymond Fung replied 12 years, 6 months ago 3 Members · 4 Replies -
4 Replies
-
Dan Ebberts
July 18, 2005 at 4:21 pmHere’s one way. Let’s say your layer with the stroked path is called “Stroke Layer”. Copy the mask shape for the path and paste it into the position parameter of your follower layer. This should create keyframes that cause the follower to trace out the path over a 2-second period. Then just add this expression for position to sync it up with the animation of the “End” parameter of the stroke effect:
percent = thisComp.layer(“Stroke Layer”).effect(“Stroke”)(“End”);
valueAtTime(2*percent/100)Dan
-
Darasmith
July 19, 2005 at 10:18 amnearly have it working except when i paste the path into the position the shape it creates is streched out wider and so when i put in the expression i follows it right but it just goes out much wider left and right .
does any of the foolwing nmake a difference
i,m using pal wide screen
its not a closed paththanks for the help
Dara
-
Dan Ebberts
July 19, 2005 at 1:30 pmIt must be some mismatch in pixel aspect ratio between the comp and the layers. Does the path start out in the right place? What happens when you change the expression to this:
percent = thisComp.layer(“Stroke Layer”).effect(“Stroke”)(“End”);
valueAtTime(2*percent/100)/thisComp.pixelAspectWhat are the pixel aspect ratios of your layers?
Dan
-
Raymond Fung
November 14, 2013 at 6:50 amHi Dan,
The expression to follow an object is really neat. Can you please help with modifying the expression though? Because I haven’t created the animated stroke via an effect, and instead I used the “Trim Paths” on a Vector Layer to animate the stroke, the expression doesn’t seem to work. I have tried modifying it to:
percent = thisComp.layer(“outline”).contents(“Trim Paths 1”)(“End”);
valueAtTime(2*percent/100)But doesn’t seem to work. Any advice please?
Expression feelings
Reply to this Discussion! Login or Sign Up