Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

Hi,

 

I am new to Affinity Photo and Designer and graphic software in general, so I have a very basic question. 
 

How can I use a shape in AP to mask out an area of another shape. For example, I have a big rectangle and I want to design a keyhole into it, so that the area of the keyhole is transparent and I can look through the rectangle onto the background. I tried to achieve this but every time I use a mask on the rectangle I only cut out everything outside the mask, but I want to cut out the mask or shape itself out of the rectangle. 

 

Thanks. 

Link to comment
Share on other sites

Started with a transparent background document, not sure if this matters because the background in this case, is the mountain image. Then make the shapes with the standard tools, had to make the keyhole shape from a circle and and square shape. Then of course the big rectangle. Place keyhole shape on top of rectangle, then select both, right click the selections and go to geometry, Subtract. Then just lower the opacity of the layer, thats what I did, to your liking.

Link to comment
Share on other sites

  • Staff

Hi ske_creative,

Welcome to Affinity Forums :)

Do the following:

- right-click on the Persona toolbar on top and select Customize Toolbar... scroll down to the bottom and drag the Operations section to the toolbar (you will need this to follow the next steps).

- draw you rectangle and keyhole shape (on top of the rectangle) then select both press ⌥ (option/alt) and click on the Subtract boolean operation button you just added to the toolbar - this will create a compound shape (check the Layers panel to expand it and access the original shapes individually)

- then drag this Compound layer over an image layer's thumbnail to use it as a mask.

 

Note: currently there's no way to create a compound shape using just the menus. That's why i suggested to customize the toolbar in the first step.

 

I think this is what you're trying to achieve. Let me know if you still have trouble.

Link to comment
Share on other sites

  • 1 year later...

Along the lines of the original question, is there any way (or plans of a way) to be able to just use a mask in case you wanted to edit the keyhole after the fact?

Scenarios where this would be useful is a solid logo that has a text cutout in the middle and you decide to change the text/font, you'll have to go through all those steps every time.

Link to comment
Share on other sites

Welcome to the Serif Affinity Forums, Jarrnie. :)

 

As MEB indicated, Option/Alt-clicking on the 'Subtract' icon results in a compound shape which gives you access to the individual components, so you would be able to edit the text at any time by expanding the Compound layer in the Layers panel and selecting the text layer there.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

  • 3 years later...

Ah! Alt clicking on the subtract option is the key, still in v 1.8. Thanks.

It would still be nice if this type of subtract feature could be integrated with the Mask function, as sort of a "Negative Mask" option. In this way, all the cutter tools could be made to be on the same layer.

Link to comment
Share on other sites

  • 4 months later...

It does not work for me. I have already spent 2 hours searching internet, I still can not locate this setting. Attached screenshots. Masking works, there is no invert option.

Can you please please share images because I seem to be missing something which is obvious to others.

Screenshot 2020-11-08 at 9.37.12 AM.png

Screenshot 2020-11-08 at 9.38.03 AM.png

Link to comment
Share on other sites

This puzzle actually has a really simple solution. There is no need to combine the two vector shapes in any way whatsoever – each of them remains completely editable. I have given an example below.

Put the rectangle (or, really, anything) in a layer over the background. Then, put the second shape (in this case, a star) over the rectangle. Set the Blend Mode of the top layer (the star) to "Erase." This will drill a hole through the entire image, revealing the blank canvas underneath. I know, I know, that's not what you want.

So, put the rectangle and the star into a Group. This will force the Erase blend mode to work ONLY on the rectangle. The star and the rectangle remain 100% editable, as does the background.

1619316057_MaskedVectors.jpg.5acfe6dcaa76d7aabb892e4b89b38542.jpg

Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad
Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme
Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17

Link to comment
Share on other sites

  • 4 months later...

Glad you found this, @Pierce Marengo and that it was helpful.

Affinity Photo 2, Affinity Publisher 2, Affinity Designer 2 (latest retail versions) - desktop & iPad
Culling - FastRawViewer; Raw Developer - Capture One Pro; Asset Management - Photo Supreme
Mac Studio with M2 Max (2023}; 64 GB RAM; macOS 13 (Ventura); Mac Studio Display - iPad Air 4th Gen; iPadOS 17

Link to comment
Share on other sites

  • 1 year later...
1 hour ago, Avi_S said:

there is no invert option like cntrl+i on a layer mask to invert it.

What's wrong with Layer > Invert?

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

3 hours ago, Avi_S said:

So even 7 years later there is no invert option like cntrl+i on a layer mask to invert it. Sad.

Yes there is, I just tested this to make sure.

  • Select your Mask Layer in the Layer stack
  • Press CTL + I
  • Mask is inverted. The default thumbnail is white, should be black after inverting.

Affinity Photo 2.4..; Affinity Designer 2.4..; Affinity Publisher 2.4..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win10 Home Version:21H2, Build: 19044.1766: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

In Designer there is a way to have an inverted, Black Mask. You need to go to the Pixel Persona, then grab the fill tool, and with the Mask layer selected in the Layers Panel, fill it with black.

Affinity Photo 2.4..; Affinity Designer 2.4..; Affinity Publisher 2.4..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win10 Home Version:21H2, Build: 19044.1766: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

1 hour ago, Avi_S said:

It only works in Affinity Photo

Your Photo is only one menu command away: File > Edit in Photo. Then go back to Designer the same way. That's the Affinity way.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

8 minutes ago, Ron P. said:

In Designer there is a way to have an inverted, Black Mask. You need to go to the Pixel Persona, then grab the fill tool, and with the Mask layer selected in the Layers Panel, fill it with black.

Doesn't that just make it Black, rather than Inverting its contents?

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

10 minutes ago, walt.farrell said:

Doesn't that just make it Black, rather than Inverting its contents?

Yep, I tried it before posting, it didn't help my situation where I had a gradient rectangle and I want to use it as inverted mask to hide whatever that rectangle was on. In my case i wanted to fade a cable end into the background and I wasn't able to find a way to do it. It was frustrating. I then just used a full page mask with a huge gradient that spends all over the page.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | 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.