Adobe Creative Cloud Design Tools All-in-One For Dummies (2013)

Book IV

Photoshop CC

Chapter 5: Using the Photoshop Pen Tool

In This Chapter

image Selecting the Pen tool for the task

image Using a path as a selection

image Creating curved paths

image Creating clipping paths

image Putting shape layers to work

The Pen tool is the ultimate method to make precise selections. You can also use it to create vector shapes and clipping paths (silhouettes). In this chapter, you see how to take advantage of this super multitasking tool. This chapter also shows you how to apply paths made with the Pen tool to create selections, shapes, and silhouettes using clipping paths.

imageIf you’re interested in fundamental practices when using the Pen tool, check out Book III, Chapter 5, where we cover the Pen tool in more detail. Using that lesson helps you in Photoshop, too, because the Pen tool works essentially the same way in both Illustrator and Photoshop.

We recommend that you use the Pen tool as much as you can to truly master its capabilities. At first it may seem awkward, but it gets easier! Knowing how to effectively use the Pen tool puts you a grade above the average Photoshop user, and the quality of your selections will show it. Read Book III, Chapter 5 for tips and tricks on how to use the Pen tool. It works very much the same in all the Adobe programs.

Selecting the Right Pen Tool for the Task

Select the Pen tool from the Tools panel, and note the default mode setting of the Pen tool on the left side of the Options bar. You can select the following options from the Pick Tool Mode drop-down list, as you see in Figure 5-1:

check Shape: Creates a new shape layer, a filled layer that contains the vector path.

check Path: Creates a path only; no layer is created.

check Pixels: Creates pixels directly on the image. No editable path or layer is created. This option may not be useful to new users, but some seasoned users prefer it because it’s the only way to access the Line tool from earlier versions.


Figure 5-1: Select the mode of the Pen tool from the Options bar.

Using a Path as a Selection

You can use the Pen tool to create precise selections that would be difficult to create using other selection methods. The Pen tool produces clean edges that print well and can be edited using the Direct Selection tool. Before using the Pen tool, make sure that you select Path from the Pick Tool Mode drop-down list on the Options bar.

To create a path as a selection (which is extremely helpful when you’re trying to make a precise selection), follow these steps to create a simple straight line path:

1. Open any file or create a new, blank file.

It is best to practice on an image that has a straight or angular item in it.

2. Select the Pen tool.

imageMake sure that Path is selected from the Pick Tool Mode drop-down list on the Options bar or else you’ll create a shape layer.

3. Click to place your first anchor point, and then click another location. Notice that the anchor points are connected with a path.

4. Continue clicking around the object that you are selecting.

When you return to your original starting point, a closed circle appears, indicating that you are closing this path, as you see in Figure 5-2.

5. Choose WindowPaths.

In the Paths panel, you can create new paths and activate existing paths, apply a stroke, or turn paths into selections by clicking the icons at the bottom of the panel. (See Figure 5-3.)


Figure 5-2:Using the Pen tool, click from one segment to another; close it at the end.

6. Click and drag the Work Path down to the Create New Path icon at the bottom of the Paths panel.

The path is now named Path 1 and is saved. You can also double-click to rename the path if you like.


Figure 5-3: The Paths panel and its options.

7. Click the Load Path as Selection icon.

The path is converted into a selection.

imageUse this quick and easy method for turning an existing path into a selection: Ctrl-click (Windows) or Command Key-click (Mac) the path thumbnail in the Paths panel.

Creating Curved Paths

To create paths that are on a curve, you first need to understand how the Bézier curve works. A Bézier curve in its most common form is a simple cubic equation that can be used in any number of useful ways, but especially when creating curves in a path. Originally developed by Pierre Bézier in the 1970s for CAD/CAM operations, it became the underpinnings of the entire Adobe PostScript drawing model.

To get a better understanding of Bézier curves, work through this simple exercise. Remember, as mentioned earlier, you can develop your skill by spending some time in Book III, Chapter 5.

1. Open an image.

In this example, an image of an apple is used.

2. Click and drag the edge of the object that you are selecting. A directional line appears. (This is not a path; it is just a directional line determining the curve of your future path.) Drag along the edge of the object and then release, as you see in Figure 5-4.

3. Move the cursor along the edge of the object that you want to select and then click and drag again.

Pay attention to the directional lines and have them flow, either on the shape, or along the side of the shape. The path you want should fall into place with just some minor tweaking.


Figure 5-4: Click and drag to make curved paths.

4. Continue clicking and dragging to make the path, and then close the shape.

Do not worry if the path is not perfect.

5. Choose the Direct Selection tool by holding down the Path Selection tool, as you see in Figure 5-5.

Use this tool to adjust your path by clicking anchor points and directional lines and repositioning them to provide you with a more accurate selection, as you see in Figure 5-6.


Figure 5-5: Select the hidden Direct Selection tool.


Figure 5-6: Edit your path with the Direct Selection tool.

Clipping Paths

If you want to create a beautiful silhouette that transfers well to other applications as you see Figure 5-7, create a clipping path. A clipping path is essentially a vector path that defines what part of the image is visible and what part is transparent. Typically a path is created around an object that you want to silhouette.

Keep in mind that you do not have to define a clipping path if you are using your image in other Adobe applications, such as InDesign and Illustrator. A clipping path is helpful if you are trying to keep an image transparent in apps such as PowerPoint, Word, or various video-editing applications.


Figure 5-7: Clipping paths enable you to create silhouettes in other applications.

To create a clipping path, follow these steps:

1. Use the Pen tool to create a path around the image area that will become the silhouette.

2. In the Paths panel, choose Save Path from the panel menu (click the triangle in the upper-right corner of the panel), as shown in Figure 5-8, and then name the path.


Figure 5-8: Convert your work path to a saved path.

If Save Path is not visible, your path has already been saved; skip to Step 3.

3. From the same panel menu, choose Clipping Path.

4. In the Clipping Path dialog box, select your path from the drop-down list, if it’s not already selected; click OK.

Leave the Flatness Device Pixels text field blank unless you need to change it. The flatness value determines how many device pixels are used to create your silhouette. The higher the amount, the fewer points are created, thereby allowing for faster processing time. This speed comes at a cost, though: If you set the flatness value too high, you may see (if you look close) straight edges instead of curved edges.

5. Choose FileSave As and, from the Format drop-down list, select Photoshop EPS; in the EPS Options dialog box that appears, accept the defaults and click OK.

If you see PostScript errors when printing, choose Clipping Path from the panel menu and increase the value to 2 pixels in the Flatness Device Pixels text field. Keep returning to this text field and increasing the value until the file prints, or give up and try printing your document on another printer.

imageIf you're placing this file in other Adobe applications, such as InDesign, you don't need to save the file as EPS; you can leave it as a Photoshop (.psd) file.

Here’s an even faster method you can use to create a clipping path that you can use in other Adobe applications, such as InDesign and Illustrator:

1. Create a path around the item you want to keep when you create the clipping path.

Make sure that you’re working on a layer and not on the Background layer. To convert the Background to a layer, hold down the Alt key (Windows) or the Option key (Mac) and double-click the Background layer. The Background layer is now Layer 0.

image  2. In the Layers panel, click the Add Layer Mask button, and then click the Add Layer Mask button again.

A layer vector mask is created, and everything outside the path becomes transparent, as shown in Figure 5-9.


Figure 5-9: Creating a clipping path the easy way, with layers.

You can still edit the path by using the Direct Selection tool.

3. Save the file in the .psd format.

4. Choose FilePlace to put the image, with its clipping path included, into other Adobe applications.

Using Shape Layers

When you start creating a path with the Pen tool, Photoshop creates a path. You can also choose to make a vector shape or a fill (which essentially creates pixeled, nonvector shapes and paths).

Shape layers can be very useful when the goal of your design is to seamlessly integrate vector shapes and pixel data. A shape layer can contain vector shapes that you can then modify with the same features of any other layer. You can adjust the opacity of the shape layer, change the blending mode, and even apply layer effects to add drop shadows and dimension. Find out how to do this in Chapter 9 of this minibook.

Create a shape layer with any of these methods:

image check Create a shape with the Pen tool. With the Pen tool, you can create interesting custom shapes and even store them for future use. We show you how in the following section.

check Use a Vector Shape tool, as shown in Figure 5-10. Vector shapes are premade shapes (you can even create your own) that you can create by dragging the image area with a shape tool.

check Import a shape from Illustrator. Choose File⇒Place and choose an .ai file; when the Options window appears, choose to place the file as a shape layer or a path. This action imports an Illustrator file as a shape layer or path into Photoshop.


Figure 5-10: The Vector Shape tools.

In Photoshop CC, you can access the Vector shape and path tool options directly from the Options bar, as shown in Figure 5-11, when either the Pen tool or a vector shape tool is selected.


Figure 5-11: You can switch to the Vector shape tool with the Options bar.

Creating and using a custom shape

Perhaps you like the wave shape (see Figure 5-12) that’s been cropping up in design pieces all over the place.


Figure 5-12: A custom wave shape integrated with an image in Photoshop.

imageYou can copy and paste shapes directly from Illustrator CC into Photoshop CC. Simply select a shape in Adobe Illustrator; choose Edit⇒Copy; switch to the Photoshop application; and, with a document open, choose Edit⇒Paste.

A dialog box appears, offering you the opportunity to place your path as a shape layer (vector shape), a path, or pixels.

You can create a wavy shape like that, too. With an image or blank document open, just follow these steps:

1. Select the Pen tool, and then select Shape from the Pick Tool Mode drop-down list on the Options bar.

Refer to Figure 5-11.

2. Click and drag with the Pen tool to create a wavy shape.

Don’t worry about the size of the shape. The shape is a vector, so you can scale it up or down to whatever size you need without worrying about making jagged edges. Just make sure to close the shape (that is, return to the original point with the end point).

When you create the shape, it fills in with your foreground color. Try to ignore it if you can; the next section shows you how to change the fill color, and Chapter 8 of this minibook covers how to change it to a transparent fill.

3. With the shape still selected, choose EditDefine Custom Shape, name the shape, and click OK.

After you save your custom shape, you can re-create it at any time. If you don’t like the shape, choose Window⇒Layers to open the Layers panel, and then drag the shape layer you just created to the Trash Can in the lower-right corner of the panel. If you want to experiment with your custom shape now, continue with these steps.

4. Click and hold the Rectangle tool to access the other hidden vector tools; select the last tool, the Custom Shape tool.

When the Custom Shape tool is selected, a Shape drop-down list appears on the Options bar at the top of the screen, as shown in Figure 5-13.

You have lots of custom shapes to choose from, including the one you’ve just created. If you just saved a shape, yours is in the last square; you may have to scroll down to select it.


Figure 5-13: A Shape drop-down list appears on the Options bar.

5. Click to select your custom shape; click and drag in the image area to create your shape.

You can make the shape any size you want.

6. To resize the shape, choose EditFree Transform Path, press Ctrl+T (Windows) or Command Key+T (Mac), grab a bounding box handle, and drag.

Shift+drag a corner handle to keep the shape proportional as you resize it.

imageBecause a shape is created on its own layer, you can experiment with ­different levels of transparency and blending modes in the Layers panel. Figure 5-14 shows shapes that are partially transparent. Discover lots of other features you can use with shape layers in Chapter 9 of this minibook.


Figure 5-14: Experiment with blending modes and opacity changes on shape layers.

Changing the color of the shape

When you create a shape with a shape tool, the shape takes the color of the present foreground color. To change the color of an existing shape, open the Layers panel by choosing Window⇒Layers; notice that the Vector Shape tool creates a new layer for every shape you make. Creating a new layer is a benefit when it comes to creating special effects because the shape layer is independent of the rest of your image. (Read more about using layers in Chapter 9 of this minibook.)

To change a shape’s color, double-click the thumbnail of the shape layer, as shown in Figure 5-15, or click the Fill color box on the Options bar across the top of the Document window. The Color Picker appears. To select a new color, drag the Hue slider up or down or click in the large color pane to select a color with the saturation and lightness you want to use. Click OK when you’re done.

imageWith the Color Picker open, you can also move outside the Picker dialog box and sample colors from other open images and objects.


Figure 5-15: Double-click the Layer thumbnail to open the Color Picker.

Removing a shape layer

Because the Pen tool now has multiple options, you may unexpectedly create a shape layer. Delete a shape layer by dragging the layer thumbnail to the Trash Can in the lower-right corner of the Layers panel.

If you want to keep your path but throw away the shape layer, choose Window⇒Paths. Then drag the shape vector mask to the Create New Path icon, shown in Figure 5-16, which creates a saved path. Now you can throw away the shape layer.


Figure 5-16: Drag the shape path to the Create New Path icon.