
<-go back to tutorials
This tutorial is a simple way to make a snake, train, or in this case
a slug move along a predetermined path The premise for this is quite simple.
You morph a source object into a target object along a path by way of bones.
(If you want to you can download the zip file for
everything right here)
(Or if you feel like viewing the sample avi file, then
click here.)
So, lets get started. As you can see by the image bellow, you'll need to save
out the "source object" on the minus side of the "Z" axis
and the "target object"
on the plus side of the "Z" axis. You simple use the exact same
object for both,
but saved in different positions and with source and target names applied
as shown.
Next, load them both into Layout's Object panel.

Select the "target object" as the morph target.
Remember to set the "target object" to be 100% dissolved.
Then create an morph envelope for the "source object".
Now, while in the "Morph Envelope's Motion Graph window,
create a keyframe at whatever frame you want the object to end it's path at,
and in this case we'll use 60.
Set the "Current Value" for keyframe 60 at something like 300.
You can come back later and readjust these settings at anytime
for differing speeds and effects. Click "OK" and close with your
settings.
Now back in Layout you should see something like this.
Begin adding bones by first placing one bone for the "source object".
You want to make sure that you place the first bone at the tail end
of you "source object". Set it's rest length to a comfortable size,
and in this case it's sort of small. (You can view the image for an estimate)
You might also want to turn off any rotational angels you think you won't
be using.
For this example, you'll only be using the "pitch".
Add as many bones as you think you'll need, but really not too many at first.
You can always add more if you find you need them. I think I put in about
40.
Now, from the side view you can begin rotating each of the bones that you
want
to make the path with a little at a time. You can simply navigate from bone
to bone
by way of the up and down arrow keys. Each time that you rotate a bone a little
bit, you'll need to keyframe it. Set all of your keyframes at zero.
Well, that's about it. Now you can move the slider bar or go ahead and hit
the play
button or make a preview and watch things work. It's fun!
Extra notes: To make the slug move slower or faster is a snap!
You only need to go back into the "source object's" morph envelope
and change the "Current Value" up or down. And make sure to change
how many frames are in your scene to match it up.
You can e me if you have any questions.
<-go back to tutorials