follow path

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Post Reply
fukuro
Posts: 15
Joined: Mon Mar 16, 2020 10:34 pm

follow path

Post by fukuro » Fri Jun 05, 2020 1:27 am

Page 136 of the user manual has an inscrutable description of how to use "follow path." I'd really appreciate a step-by-step description of how to get "follow path" working.

What I have: 1) a layer with a path (made using the freehand tool); 2) a layer with a complex object (that I want following the path).

Thanks.
User avatar
Greenlaw
Posts: 4661
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: follow path

Post by Greenlaw » Fri Jun 05, 2020 4:58 pm

Hi,

1. Create a path in a layer. This will be the 'track' you want another layer to follow. You mentioned using the Freehand tool. That's fine but I suggest using the Add Point tool to create a cleaner path for smoother results.

2. Create another layer with the item you want to follow the path. This layer can be vector, image, group...it doesn't matter. Keep in mind that the origin of the layer will be used as the pivot point.

3. With the second layer selected, choose the Follow Path tool. Click on the path with the Follow Path tool. The second layer will snap to the clicked location along the path.

That's pretty much it. To animate the item, you need to create keyframes for the positions along the path. You can do this by moving the item to another position using the tool or by entering different values in the Percentage field.

A neat trick you can do with the Follow Path tool: deform another layer along the path. To do this, you Alt-Click on the path using the tool. This is great for bending artwork as it follows the path, like a snake for example.

The Alt-Click method can also be used as an alternative to bones animation. In this case, instead of moving the item along the path, you would animate the path to deform the artwork. You might use this to animate a whip or a tentacle. (I typically use the Sketch Bones to animate this sort of thing but there are situations when using a path produces smoother results.)

Another fun trick: Make the path a closed shape. Now you have a continuous track you can loop items around. I use this to animate items like bees moving continuously around a beehive. (One of the 'choice points' for the three bears segment in Puss-In-Book on Netflix has that specific bit in the background.) Once you set up the loop, you can use Sequencer to offset the timing of the animation.

Hope this helps.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2019 Edtion
Lead Digital Animator, Dreamworks Animation

Image
User avatar
MrMiracle77
Posts: 21
Joined: Mon Jun 24, 2019 2:30 am

Re: follow path

Post by MrMiracle77 » Sat Jun 06, 2020 4:58 pm

I'd add that Moho uses the layer's "center" to determine which part of it attaches to the path. The center is the blue crosshairs, and moving the center can create interesting effects. For example, if you want to make a rollercoaster car follow the path defined by the tracks, you'd adjust the center so that it falls below the wheels.

The layer settings also has a toggle to make the layer rotate as it follows the path, which I found useful for making rockets arc their way to a target.
User avatar
Greenlaw
Posts: 4661
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: follow path

Post by Greenlaw » Sat Jun 06, 2020 7:36 pm

Thanks for posting the the additional info MrMiracle77. I totally forgot to mention the rotation option. :)

Your post makes me want to clarify something I wrote and add something else:

When I said to keep in mind that the Follow Path tool uses the layer's origin, I should have said it uses the layer's origin at the time you click on the path. This is important because if you move the origin from the layer's actual center, then it uses the offset position. However, if you move the origin after clicking on the path, Follow Path will ignore the new position. If you want to change the origin after using Follow Path, you'll need to remove the layer from Follow Path, then change the origin, and then use Follow Path again.

I don't think the docs mention how to remove a layer from Follow Path so here's how: Go to frame 0, select the layer that's following the path, select the Follow Path tool and click in an empty area off the path. The layer will jump off the path and, more notably, the Follow Path keyframes will disappear.

Note: The layer might not jump back to its 'pre-Follow Path' position so depending on what you're doing, you may want to Reset it. It might not matter...I'm just mentioning this as something to be aware of.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2019 Edtion
Lead Digital Animator, Dreamworks Animation

Image
Post Reply