Jump to content
edferg

How to make a vector mask containing a hole in Photo?

Recommended Posts

How do you make a vector mask containing a hole in Affinity Photo?

Assume I want to mask a photo of a doughnut in Affinity Photo.  I want a vector mask so I can modify it with precision at any time.

I use the pen tool to draw a closed curve around the perimeter of the doughnut , then fill the curve black.

I present my filled curve to the doughnut layer and get the short blue vertical line.  The mask works as expected, but of course the hole has not been addressed.

How do I deal with the hole?  Nothing I have tried works, except the following:

I draw another closed curve for the doughnut hole and fill it black.  I position this layer below the doughnut / mask layers described above, and change its Mode to Erase.

Now I have the doughnut , a transparent background and transparent hole. This is exactly what I want, with the ability to edit both the doughnut perimeter and the hole, using the node tool.

This technique seems to work well, but it feels like a work-around. Is this the only way to make a vector mask containing a hole?

Share this post


Link to post
Share on other sites
6 minutes ago, v_kyr said:

Thank you.  I've seen this video.  However it demonstrates a simple, single mask.  I 'm dealing with a round mask with a hole in the center.

Share this post


Link to post
Share on other sites

Look at the APh shape tools, there is one with a donut shape, also the cog shape tool offers a lot of customizations (can also be made a ring). Try to reuse those for your mask. - Or draw two circles with the shape tools (a smaller on a bigger one) and then geometrical substract those, you will get a donut like shape too then.


☛ Affinity Designer 1.7.1 ◆ Affinity Photo 1.7.1 ◆ OSX El Capitan

Share this post


Link to post
Share on other sites

Thank you.  The donut shape can be made to work as a mask after converting it to curves, adding many points, and moving each node to conform to the object I wish to mask.  That is a lot of work.

I really need to stay with closed curves which I draw myself.  How do I geometrical subtract two closed curves in Affinity Photo?

Share this post


Link to post
Share on other sites
2 hours ago, edferg said:

How do I geometrical subtract two closed curves in Affinity Photo?

Layer > Geometry: Subtract 

or use the top tool menu: 1008100154_ScreenShot2019-03-22at07_43_08.png.a10950ef360c5d73c56264a0303454ab.png 

You might have to customise the menu to get this, so right-click  and choose customise Menu, you can drag the geometry strip onto the menu.


iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo, Publisher Beta 1.7.0.140, Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials Instagram & Flickr - Affinity Live 19th June 2019

Share this post


Link to post
Share on other sites

Thanks everyone!  Layer>Geometry: Subtract converted my two curves into a single layer, which allowed me to mask my image with a hole in the center.

I had never even noticed the Geometry options in the Layers menu before.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.