Publishers of technology books, eBooks, and videos for creative people

# Unlock the True Power of Illustrator By Mastering Vectors

• Print
This chapter is from the book

### This chapter is from the book 

Editing paths by hand can be tedious, but it doesn't always have to be. Many times, you'll need to perform certain edits on vector paths, such as removing extra anchor points from a complex path or splitting larger shapes into smaller ones of equal size. Other times, you may need to create outlines of strokes, create duplicate paths at larger or smaller sizes, or simply clean up loose paths and objects in your file. The good news is that Illustrator has a variety of useful path functions you can use to perform these kinds of tasks.

You can find the functions covered here in the Object > Path menu.

### Working with the Join and Average Commands

When you have two anchor points, you can use the Join command to connect the two points with a straight path. Although this sounds simple, you must meet certain requirements for the Join command to work:

• Only two anchor points can be selected. If you have three or more anchor points selected, the Join command will not work. Unless ...
• All of the anchor points on an open path are selected. In this case, the Join command draws a straight line between the start and end anchor points to close the shape.
• The selected anchor points cannot belong to different groups.
• The selected anchor points cannot be part of a graph object.

If the two anchor points overlap each other exactly, Illustrator combines the two anchor points and gives you the option of converting the resulting single point to a smooth point or a corner point (Figure 4.39).

The Average function allows you to select at least two anchor points and reposition them by evenly dividing the space between them. You can average anchor points horizontally, vertically, or both horizontally and vertically.

There is no limit to how many anchor points you can average at once (Figure 4.40).

You can also select two anchor points and press Command-Option-Shift-J (Control-Alt-Shift-J) to perform a combined Average and Join function in one step.

### Using the Outline Stroke Command

The stroke of a path adds thickness to the appearance of the path, but it's an attribute you can't physically select and manipulate on the artboard. However, you can select a path with a stroke and choose Object > Path > Outline Stroke; when you do, the stroke of that path expands to become a filled shape that you can then edit with the Pen tool. This allows you to tweak the path to make it appear as if the "stroke" is thinner and thicker in different places.

Sometimes you might want to convert a stroke to an outline for production reasons. If you have a final version of a logo, converting all strokes to filled paths assures that it will scale properly under all circumstances, because users may forget to turn on the Scale Strokes & Effects setting.

Similar to what happens with patterns, when you apply transformations to objects that have strokes or effects applied, the default behavior is that only the shape is transformed, not the strokes or the effects (Figure 4.41 on the following page). Turning on the Scale Strokes & Effects option in the General panel of Preferences changes the default behavior so that strokes and effects are transformed as well. You can also find this setting in the Scale Options dialog.

### Exploring the Offset Path Function

One of the most useful path functions in Illustrator is Offset Path. When used, this function creates a new vector path that is offset a user-specified amount from the selected object(s). The original selected path is not affected. If you think about it, it's like a scaling function—you can offset paths to be larger or smaller. But if you've ever tried to scale an object such as an oval, you'll know that doing so creates an oval of a different proportion. If you want to create an object that is the same but that has its edges enlarged evenly across the entire object, choose Object > Path > Offset Path (Figure 4.42).

Offset Path works a bit differently depending on the kind of path you have selected. On a closed path, it seems to work as expected, by creating the new path at the offset you specify. On an open path, however, the Offset Path command creates a new closed path, appearing on both the inside and outside of the original path (Figure 4.43). Depending on the task, this might mean you need to take an extra step to delete the part of the path that is not needed.

### Simplifying Vector Paths

Earlier in this chapter, you learned how to use the Remove Anchor Point tool to delete existing anchor points from a path. Although that tool is useful for removing a point or two from a path here or there, it's quite another story when you're trying to remove a lot of anchor points from a path.

You may find that some vector paths contain unnecessary anchor points. By unnecessary, we mean you might be able to create the same path with fewer anchor points. Too many unnecessary anchor points on a path translates into more complex files that take longer to print and that are more difficult to edit (Figure 4.44).

You'll often come across this problem when you're importing files from CAD applications or when you're using vector tracing programs such as Adobe Streamline (the Live Trace feature in Illustrator, covered in Chapter 9, Mixing It Up: Working with Vectors and Pixels, does not suffer nearly as much from this problem).

To reduce the number of anchor points on a path, select the path, and choose Object > Path > Simplify. You can use the Preview option to see the results as you change the settings. The Simplify dialog also gives you real-time feedback on the number of anchor points on the original path and the number of points using the current Simplify settings (Figure 4.45). The dialog also offers the following settings:

• Curve Precision. This controls how closely the simplified path matches the curves of the original selected path. A higher Curve Precision setting results in a path that more closely matches the original but that has fewer reduced anchor points.
• Angle Threshold. The Angle Threshold setting determines the smoothness of corners. If the angle of a corner point is less than the Angle Threshold setting, the corner point is not changed to a smooth anchor point.
• Straight Lines. This setting forces the simplified path to only use corner anchor points, resulting in a path that is far less complex. Of course, the path may not match the original that well, but this option may be useful in a creative mind-set.
• Show Original. With the Show Original option checked, Illustrator displays both the original path and the simplified result, allowing you to preview the difference between the two.

### Using the Split Into Grid Feature

The Rectangular Grid tool is great for creating quick grids for illustration purposes, but with it you lack fine control, especially if you want to create gutters—space that appears between columns and rows. Illustrator's Split Into Grid feature takes an existing shape and splits it into a specified number of equal-sized rectangles.

With any vector object selected, choose Object > Path > Split Into Grid to open the dialog. Select the Preview check box so you can see the results as you enter the values. Add rows and columns as needed, and also specify a value for the gutter. Illustrator automatically calculates the width and height values for you as you change the other values. At the bottom of the dialog is an Add Guides check box, which draws guides at the borders of the rows and the columns (Figure 4.46).

### Removing Unnecessary Elements with the Clean Up Feature

While working on revision after revision of a file, your document may become littered with stray anchor points, empty text objects, or unpainted objects (those that have neither a fill nor a stroke applied). Having these objects present in a file can be problematic for a variety of reasons. Empty text objects may contain references to fonts, and you, thinking that those fonts aren't there, may forget to include them when you send source files to prepress. Additionally, stray points in a file can cause files to export with unexpected size boundaries (refer to Chapter 1, The Illustrator Environment, where we spoke about bounding boxes) and could lead to corrupt files.

Choose Object > Path > Clean Up, and choose which of these elements you want to automatically remove from a file (Figure 4.47 on the following page). Beware that to Illustrator, a stray point is a single anchor point with no path. Some designers use Scatter brush art by using the paintbrush to click just once to place a single instance of a brush. Running the Clean Up command to delete stray points deletes these Scatter brush objects from a file as well. In reality, it's better to use Symbols rather than Scatter brushes for these designer tasks, something we'll discuss in Chapter 5, Brushes, Symbols, and Masks.