Jump to content

Affinity Photo - How to mask shape with another shape non-destructively?


Recommended Posts

Hi,

I have a simple use case where I want to mask a shape with another shape non destructively. I am starting with a fresh, transparent document, and adding two rectangles:

Mask1.png.05fc8eb9710f0c4b0dbcf004c118354e.png

Now, I'd like to perform a trivial action of using the black Rectangle layer as a mask for a blue Rectangle layer so that the black rectangle layer removes part of the blue Rectangle layer. 

If I just drag the black Rectangle layer as a mask layer of the blue Rectangle layer, I get an inverted effect where the black Rectangle area defines where the layer is visible, not invisible:

Mask2.png.06d8db85bd5087e1e0039300962915c1.png

I am aware I can select both layers and go to Edit > Geometry > Subtract but that doesn't meet the criteria, as this action destroys both rectangle layers and converts them into a curve, which means I can no longer easily move around and adjust the masking rectangle.

I must be missing something, because this seems like a super trivial use case, yet I can't figure it out.

Link to comment
Share on other sites

Use Layer > Create Compound

Change the rectangle layer geometry (Boolean) attribute to subtract

image.png.c568a7b84714749a46f76e64a811e482.png

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

9 minutes ago, firstdefence said:

Use Layer > Create Compound

Change the rectangle layer geometry (Boolean) attribute to subtract

image.png.c568a7b84714749a46f76e64a811e482.png

Uh, I must be missing something, but I don't see any "Compound" option in layer menu:

1228867790_Annotation2020-08-14142324.jpg.92fc15cd0dce3147f1c9f4aadba7a847.jpg

Is there any chance you've confused Affinity Photo with Affinity Designer?

Link to comment
Share on other sites

In AP go to Layer > Geometry (hold down alt key) and now choose the boolean action you want as a Compound.

macOS 12.7.6  15" Macbook Pro, 2017  |  4 Core i7 3.1GHz CPU  |  Radeon Pro 555 2GB GPU + Integrated Intel HD Graphics 630 1.536GB  |  16GB RAM  |  Wacom Intuos4 M

Link to comment
Share on other sites

Note: Holding down ALT when choosing one of the Geometry functions from the menu doesn’t work in Windows. (It works when pressing the button in the Toolbar but not from the menu.) This is because ALT is the open/close menu key, so pressing ALT closes the menu.
An alternative is to use the button on the Toolbar but you may need to customise the Toolbar (menu “View → Customise Toolbar”) to get the buttons.

Link to comment
Share on other sites

You can also put the black rectangle in place on a layer directly above the blue shape and change the blend mode of the black rectangle to "Erase."  You can then group the two shapes together so you can move them as a unit, but you can still move the black rectangle relative to the blue shape (within the group) if you need to alter the knock out.  Grouping will also limit the "erase" effect of the black rectangle to just the blue shape, so that the black rectangle does not erase all of the layers under the group, just the blue shape in the group.

kirk

Link to comment
Share on other sites

47 minutes ago, kirkt said:

You can also put the black rectangle in place on a layer directly above the blue shape and change the blend mode of the black rectangle to "Erase."  You can then group the two shapes together so you can move them as a unit, but you can still move the black rectangle relative to the blue shape (within the group) if you need to alter the knock out.  Grouping will also limit the "erase" effect of the black rectangle to just the blue shape, so that the black rectangle does not erase all of the layers under the group, just the blue shape in the group.

kirk

That seems to be easier. Thank you!

Link to comment
Share on other sites

Oops! totally missed the Affinity Photo in the title Doh!! 

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

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.