Photoshop Tip: Combine Vector Shapes

As I’ve migrated into using vector shapes in my Photoshop work as much as possible, the difference in control you have with vector objects between Photoshop and Illustrator has been a constant source of frustration. One specific example is that for years I’ve wanted to have the same or similar functionality of combining vector shapes in Photoshop that Illustrator has with it’s Pathfinder tool, arguably one of the most powerful tools in Illustrator.

My solution has been to use the vector tools in Photoshop for basic shapes such as rectangles, rounded rectangles, circles, and lines and if I needed a more complex shape I’d jump into Illustrator, build it, and then copy it back into Photoshop. This was not only annoying from an efficiency perspective but also because I didn’t have the contents of the rest of my Photoshop comp to rely on when building the shape I needed unless I saved a jpg and used that in Illustrator for reference.

I was recently working on a project that called for a tabbed navigation element and I really wanted that object to be one single vector shape. I got fed up and did some searching to see if there was any possible way to combine vector shapes and found this solution that looked exactly like what I’ve been looking for. While the content was good, the steps weren’t very clear, but I was able to figure it out and thought I’d pass this info along with expanded details and screenshots. Here’s the process:


1. Create a New Document

shapes

shapes_layers1

Draw two or more vector shapes in your document and make sure they overlap. Your “Layers” palette should look something like the 2nd screenshot.


2. Choose the Path Selection Tool

path_selection_tool

From your “Tools” window select the “Path Selection Tool” (dark arrow). If you have the “Direct Selection Tool” (white arrow) enabled then you’ll need to click and hold to bring up the option to choose the “Path Selection Tool”. This is what had me stumped for such a long time. I always had the “Direct Selection Tool” enabled because I regularly adjust individual points on my vector shapes. I had long forgotten that there was another arrow under that option in the “Tools” window. The “Path Selection Tool” gives you the ability to select vector paths as a whole and move them around or copy them, which we’re about to learn is a very vital step.


3. Select Vector Mask

select_vector_mask

With the “Path Selection Tool” enabled, select the vector mask for the top shape in the “Layers” window and hit cmd+C (ctrl+C on Windows) to make a copy of that mask. Now select the vector mask of the shape below it and hit cmd+V (ctrl+V) to paste the copied vector mask onto the bottom shape’s layer. Your “Layers” window should now look like this:

combined_vector_masks


4. Combine Vector Masks

vector_masks_selected

combine_vector_masks

With the “Path Selection Tool” still enabled you can either hold down the “shift” key and make multiple selections of the vector shapes in your document or simply click on the vector mask thumbnail of the bottom layer that now contains multiple paths, which selects all of the paths for that layer. Which route you take depends on if you want to combine all of the shapes or only some of the shapes in that layer. At the top of the application you get the option to “Combine” these shapes.

The options available look very similar to the main options you have with the “Pathfinder” tool in Illustrator. You can “Add to shape area”, “Subtract from shape area”, “Intersect shape areas”, and “Exclude overlapping shape areas”. If you click “Add to shape area” you’ll get the following result:

new_vector_mask

new_vector_mask_layers


That’s it!

Another interesting thing to note is that once you have multiple masks on a single shape layer you don’t have to combine them for them to perform as a single shape. You can apply layer effects to that layer and Photoshop will treat all of those masks as a collective whole. Leaving these as individual shapes on the same layer provides flexibility to where you can copy and paste them out of that layer and into a new layer or drag them around individually.

I can’t tell you how happy I was to learn this feature. It’s been a huge time saver for me. Hopefully it’s helpful to you if you’ve wondered the same thing or are new to Photoshop.

  • Posted

    • August 25, 2009

Illustrator Tip: “Align to Key Object”

I use the align tools in both Illustrator and Photoshop a lot to help make sure various elements are properly positioned in my comps. Sometimes when working in Illustrator I want to center multiple objects around a single “master” object and so I use the “Horizontal Align Center” or “Vertical Align Center” buttons on the “Align” palette. These actions will center those objects, but Illustrator will shift all of the selected objects to a common center based on your selection. This has always frustrated me because I then have to reposition all of these now aligned objects back to where my “master” object was positioned before I performed the alignment.

This morning I guess I decided to pay closer attention to the options included in the Align palette and I noticed the “Align To:” drop-down box. Clicking on this brought up the following 3 options:

align_to_key_object

The “Align to Key Object” option sounded like it would do what I’ve always wanted to do with the align tools. I selected it and noticed that Illustrator drew a thicker selection around my top two buttons. I could tell those were now the “Key Objects” and all I had to do was click on the “CTA Button” to assign it as the Key Object and then click on the “Horizontal Align Center” button. Bam, my top two buttons aligned perfectly over the “CTA Button” and the “CTA Button” remained in it’s position.

I don’t know how long this feature as been in Illustrator and it may very well be common knowledge to most Illustrator users. It was a huge time-saver for me and felt worthy of passing on to the rest of you. I’ve run into several situations like this with Adobe’s applications, which isn’t surprising since they’re fairly complex and feature a lot of small UI elements that aren’t always noticeable at first glance.

On another note, I’m not a fan of how Adobe has chosen to indicate which element is the “Key Object”. The highlight treatment is horrible and looks to be somewhat of an afterthought. I’d recommend another highlight treatment and possibly change the highlight color so it doesn’t blend into the selection color.

  • Posted

    • July 16, 2009