Please note that shapes in Motion 3 now have an Offset parameter and a related Write On behavior. This allows for them to be stroked on, though only solid-line shape types can do this, so this tutorial is still relevant.
A common task in motion graphics is drawing an animated line. In this tutorial, you'll see how you can use the replicator to easily animate a line on a map image, as seen above.
For those of you who aren't familiar with the replicator, here's the one-line description: it allows you to create and animate a pattern of objects. Similar to particles, the replicator consists of a parent replicator object and one or more replicator cells.
In this case, we're going to build our replicator from a little rectangle shape object. But first, we need to draw the path that we want our line to follow.
Now we're ready to build our replicator. We need the seed from which all will grow, so let's draw a little box.
As you can see, the default build pattern of the replicator is a box, making a nice grid. While there are a number of different (and fun) patterns to choose from, we want to build our replicator along the path that we already drew (Line Path), so we need to change the replicator build type and make our line path the source for the pattern.
Now we have our path-based replicator, with a few little blocks on it. To make it look like a proper line, we'll need to increase the number of points in the replicator. We could increase them to where they touch and form a smooth line, but in this case we're after a dashed-line effect. We also want to enable the Align Angle parameter so that the blocks auto-align their rotation to the path.
And there you have the basic line. Since the replicator is using the path you drew as its build path, you can easily change the line by adjusting the original Line Path shape. And you're not limited to little blocks: you could make a line out of other shapes, particles, or even video clips. Let's go ahead and make this line a little purtier. Since we're going for a map-effect, let's drop a map into the background.
Now for some color. There are a couple of different ways to colorize our line: we could set the color for the original box shape (Line Box), or we could tell the replicator to colorize the shapes over the build. While the replicator method allows for some wild stuff, like this...
...we want to use the shape controls to add an outline to each line segment, which means we'll do the color in the source shape.
Now that we have our fully drawn-on line, we need to give it some animation. On to page 2...