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

Home > Articles

This chapter is from the book

This chapter is from the book

Performing Advanced Path Editing

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).

Figure 4.39

Figure 4.39 When you are trying to join two overlapping anchor points, Illustrator offers you the option of creating a corner anchor point or a smooth anchor point.

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).

Figure 4.40

Figure 4.40 Choose Object > Path > Average, and then align multiple anchor points.

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.

Figure 4.41

Figure 4.41 If you forget to turn on the Scale Strokes & Effects setting, you can run into problems when scaling artwork. In this example, the text of the logo was reduced, as was the path, but the stroke weight was not scaled. Outlining strokes prevents these kinds of accidents.

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).

Figure 4.42

Figure 4.42 Scaling an oval shape results in a distorted shape (left). Using the Offset Path function results in a nondistorted result (right).

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.

Figure 4.43

Figure 4.43 The Offset Path function, applied to an open path, results in a new closed path. You have to delete a portion of the resulting path if you want an open path.

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).

Figure 4.44

Figure 4.44 Paths with numerous unnecessary anchor points are harder to edit and take longer to print.

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:

Figure 4.45

Figure 4.45 When using the Simplify function, you can see real-time feedback on the number of reduced anchor points and the integrity of the shape of the path.

  • 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).

Figure 4.46

Figure 4.46 Using the Split Into Grid feature can make it easy to set up layout grids.

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.

Figure 4.47

Figure 4.47 Illustrator's Clean Up feature makes it easy to remove excess elements from a document.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020