I have a rounded rectangle vector shape. I would like to make a hole in it (B – A).
How can this be done?
Thanks
Best Answer
Make the top shape (AKA the "Hole") as a vector object then flatten it.
Then use the Magic Selection tool to select the flattened "Hole" shape
Next Invert the Selection (Ctrl + Shift + I).
With your selection inverted, click on the Base Layer that should have the "Hole" in it.
With the Base Layer Selected, click on the Layer Mask button @ the bottom of your layers
panel.
This will open up the "Hole" in your Base Layer shape.
** I keep the flattened hole layer in case you want to use certain effects like a drop shadow or drop glow effect. You may have to use the flattened layer to achieve some of these effects as I just found out.
Please Note: There may be a better way to do this, but this method worked for my needs. Good luck all!
The simplest solution would be to use a mask, but that would require you to remember to make the mask just before you export.
If you want to go this route, select layer 3, and then ctrl for windows/or command for mac click the layer you want to be the basis for the transparency, and then click on the icon down the bottom of the layers panel with the circle in a square. This will give you the transparency you want, but it's entirely manual and you have to remember to update it when you edit the black layer.
You could create an action that selects the layer you want to use and makes a mask from that, but you'd still have to remember to run the action...
Best Answer
** I keep the flattened hole layer in case you want to use certain effects like a drop shadow or drop glow effect. You may have to use the flattened layer to achieve some of these effects as I just found out.
Please Note: There may be a better way to do this, but this method worked for my needs. Good luck all!