rawalanche Posted August 14, 2020 Share Posted August 14, 2020 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: 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: 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. Quote Link to comment Share on other sites More sharing options...
firstdefence Posted August 14, 2020 Share Posted August 14, 2020 Use Layer > Create Compound Change the rectangle layer geometry (Boolean) attribute to subtract Quote 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 (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 More sharing options...
rawalanche Posted August 14, 2020 Author Share Posted August 14, 2020 9 minutes ago, firstdefence said: Use Layer > Create Compound Change the rectangle layer geometry (Boolean) attribute to subtract Uh, I must be missing something, but I don't see any "Compound" option in layer menu: Is there any chance you've confused Affinity Photo with Affinity Designer? Quote Link to comment Share on other sites More sharing options...
markw Posted August 14, 2020 Share Posted August 14, 2020 In AP go to Layer > Geometry (hold down alt key) and now choose the boolean action you want as a Compound. Quote 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 More sharing options...
GarryP Posted August 14, 2020 Share Posted August 14, 2020 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. Quote Link to comment Share on other sites More sharing options...
rawalanche Posted August 14, 2020 Author Share Posted August 14, 2020 Thanks. This is a bit scary though. Given how basic this feature is, it's almost undiscoverable in the user interface :X Quote Link to comment Share on other sites More sharing options...
kirkt Posted August 14, 2020 Share Posted August 14, 2020 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 Quote Link to comment Share on other sites More sharing options...
rawalanche Posted August 14, 2020 Author Share Posted August 14, 2020 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! Quote Link to comment Share on other sites More sharing options...
JimmyJack Posted August 14, 2020 Share Posted August 14, 2020 16 minutes ago, rawalanche said: That seems to be easier. Thank you! Just be aware that using the Erase blend mode with result in rasterization on export. (...which may be fine for you). You could also try a mask like the green below: mask example.mp4 Quote Link to comment Share on other sites More sharing options...
firstdefence Posted August 14, 2020 Share Posted August 14, 2020 Oops! totally missed the Affinity Photo in the title Doh!! Quote 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 (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 More sharing options...
lacerto Posted August 14, 2020 Share Posted August 14, 2020 4 hours ago, GarryP said: Note: Holding down ALT when choosing one of the Geometry functions from the menu doesn’t work in Windows. Alt + Ctrl (or Alt Gr) works. [But you do not get "Compound" text appended in the caption, as you do on macOS.] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.