Advertisement


Transparent path/stroke fill in Illustrator


Question

This is an odd request and something I've never had to worry about in Illustrator until now. I'm building out a logo that will be printed on a shirt. Instead of having a solid black border around the vector hand, the client wants the black border to be "transparent" so when it is placed on top of a pattern, you see the pattern background. I have an example below of what I'm trying to accomplish.

Logo outlined in black in current form

Image over a pattern with transparent fill

The second photo I mocked up in Photoshop to show what I'm trying to do. It's very easy to select the border path in Photoshop and simply wipe it out. Does Illustrator have a "transparent" fill option in the Path area? Selecting a color and dropping the transparent percentage didn't do the trick.

2015/12/29
1
10
12/29/2015 8:13:00 AM

Accepted Answer

There is a little known feature, in Illustrator, that allows you to do this non-destructively. That is without expanding and using pathfinder. This can bring some future flexibility to your designs. As a bonus its also less work and works inside effects.

  1. First turn on transparency grid or put something behind your graphic. This ensures that you can observe the effect.

  2. Select the entire graphic (not the background) and group it. This group will determine what gets transparent.

    • In the transparency window click on knockout group (If you can not see options in the panel menu enable extra options).
  3. Assign the strokes/shapes you want to make transparent with 0% opacity in the transparency panel (if you just want strokes transparent use appearences panel see here). Because of the knockout group option this will now carve through your grouped shape.

Example

Image 1: Example result.

2017/04/13
12
4/13/2017 12:46:00 PM

What you essentially need to do is separate the stroke from the fill. Then subtract the stroke from the fill.

You can do this by using the Object > Expand item in the menu then the Pathfinder Panel or Shape Builder Tool will allow you to cut the stroke from the fill.

So....

  • Select the hand
  • Object > Expand (tick all options and hit OK)
  • Click the Merge button on the Pathfinder Panel
  • Using the Direct Selection Tool (the white arrow), click the black shape (formerly a stroke)
  • Hit Delete

You should be left with only the white objects and gaps between them where the black used to be.

animtion

2014/02/28