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