Mobile app version of vmapp.org
Login or Join
Chiappetta793

: How to create a transparent stroke or outline around a vector shape? I'm attempting to create a transparent stroke around the inner heart shape, which knocks out the "lungs" layer below to reveal

@Chiappetta793

Posted in: #AdobePhotoshop #Shapes #Stroke

I'm attempting to create a transparent stroke around the inner heart shape, which knocks out the "lungs" layer below to reveal the red bottom layer.

I seemed unable to create this as an actual stroke (which, in any case, would only reveal the "lung" shapes below it, not the red bottom layer), and my next attempt was to duplicate the heart, enlarge it and use it as a mask, but that also didn't help, as it's not an even outline of the heart.

Any ideas of the best way to do this? Thanks in advance.

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Chiappetta793

4 Comments

Sorted by latest first Latest Oldest Best

 

@Mendez620

I've always just copied the layer I want to have a stroke around (Ctrl-j), add a stroke of the ideal width to this new layer, rasterized layer style, then went into blending options, turned fill opacity to 0 and set the knockout to deep, then hit Ok and merged it into the layer the lungs would be on.

10% popularity Vote Up Vote Down


 

@Dunderdale640

The best method I found to do this is as follows:


Create a stroke (any colour) of the appropriate size for the shape for which you wish to make the stroke transparent (although it will look like this, this will not be exactly what you are doing to achieve it.)
Separate this stroke on to its own layer by right-clicking the shape's layer styles and selecting "Create Layers." Ignore the others for now.
Now it's on its own layer, Cmd-click the stroke's shape in the layers panel, which will select the shape.
Invert your selection, by holding Shift + Cmd + I, or Select > Inverse at the top.
Select the layer below, which you will be masking with the separated stroke layer effect.
Select "Add layer mask" from the bottom of the layers panel.
Erase the stroke effect layer.
To clean things up, if desired, merge this bottom layer with the top layer and all of the separated layer effects to create one layer.

10% popularity Vote Up Vote Down


 

@Pierce403

A transparent stroke is probably not the best way to look at it. You'll need to use masks (in this case vector masks) to accomplish this.

General workflow is to Fill a layer with a color, create a path and go layer>vector mask. This will now control what of that layer is visible. With the mask selected, you'll notice a bunch of options in a dropdown at the top to combine/subtract/intersect/exclude. If you play around with these features, including combining multiple paths in the mask, you'll soon get what you are after.

10% popularity Vote Up Vote Down


 

@Murray976

I'm not sure of what you are trying to do.

For an even outline you probably want Object > Path > Offset Path instead of just duplicating and scaling the heart shape.

Edit: I just realised you have used Photoshop as a tag and my previous advice is for Illustrator.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme