Jump to content

How to use shape as cutout mask of another shape


Recommended Posts

Hi,

I am using Affinity Photo 1.10 and I can't figure out the most simple task of masking out shape with another shape. I have this setup:

image.png.3d199eb39da28e4ed158e015b8cf3652.png

White circle, black cross. Both are live shapes that can be edited. I want to use the cross to cut a hole in the white circle, so the white circle is transparent where the black cross is. I can't figure out how to do that while keeping the both shapes live and editable. 

 

Link to comment
Share on other sites

6 minutes ago, rawalanche said:

What do you mean <alt>Subtract? Like alt+minus key, or what?

Probably, alternatively perform a geometrical subtract of a copy of both selected shapes.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

10 minutes ago, v_kyr said:

Probably, alternatively perform a geometrical subtract of a copy of both selected shapes.

This is what I want to avoid, that's why I explicitly wrote in my original post that I want both shapes to remain live so I can edit them. I know of geometry>subtract but that one collapses the live shapes into curves which can no longer be edited parametrically. Alt+minus key does nothing on my side. 

Link to comment
Share on other sites

31 minutes ago, rawalanche said:

Alt+minus key does nothing on my side. 

Well David in Яuislip didn't said alt+minus key, that was just your guessing interpretation of what IMO wasn't meant here.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

Use compound shapes to get live / editable shapes.

https://affinity.help/photo2/en-US.lproj/pages/CurvesShapes/compound.html

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

My posts focus on technical aspects and leave out most of social grease like „maybe“, „in my opinion“, „I might be wrong“ etc. just add copy/paste all these softeners from this signature to make reading more comfortable for you. Otherwise I’m a fine person which respects you and everyone and wants to be respected.

 

Link to comment
Share on other sites

Using the menu, this creates a curves layer, note the plural curves not curve, this means you can undo and separate the curves if you want or need to.

  • Make sure the black X  is above the white circle in the layers panel
  • Next, select both layers in the layer panel
  • Use Layer > Geometry > Subtract 

Using keyboard shortcuts, this creates a compound.

  • Make sure the black X  is above the white circle in the layers panel
  • Next, select both layers in the layer panel
  • On the top menu, Press and hold the ALT key on the keyboard and click on the subtract icon (see image below)

image.thumb.png.f49a4563beb26db433bcf3bcb3cc99fb.png

 

Result of the first method, creating a single curves layer.
image.thumb.png.e10ff21fb8aa0d0152c7b916102f2704.png

Result of second method, notice the shapes are now nested in a special group called compound and the square star now has an attribute of subtract indicated by the blue square and minus sign in the layers panel.
image.thumb.png.e494d6109f7a857d6d4d1839c4e36319.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

12 minutes ago, firstdefence said:

Using the menu, this creates a curves layer, note the plural curves not curve, this means you can undo and separate the curves if you want or need to.

  • Make sure the black X  is above the white circle in the layers panel
  • Next, select both layers in the layer panel
  • Use Layer > Geometry > Subtract 

Using keyboard shortcuts, this creates a compound.

  • Make sure the black X  is above the white circle in the layers panel
  • Next, select both layers in the layer panel
  • On the top menu, Press and hold the ALT key on the keyboard and click on the subtract icon (see image below)

This works, thanks! But:

Is this really only procedure to achieve this result? Surely there must be some other route to create compounds. I mean first of all, the geometry operations icon bar is not even displayed out of the box in fresh installation. One has to customize toolbar to add it. Secondly, there's no indication anywhere in the software (still using v 1.10) that compounds feature even exists, and there's nothing in the tooltips of the (by default hidden) geometry operations toolbar to imply it behaves differently with Alt key held down.

If this super hidden way is the only way to do it, then this is a disaster from the UX standpoint. 

Link to comment
Share on other sites

5 minutes ago, rawalanche said:

Is this really only procedure to achieve this result? Surely there must be some other route to create compounds. ...

You're in APh v1 where these things are slightly hidden per se, thus it a little bit tricky there to get compounds. - In ADe v1 the whole is more obvious, as there's an explicite layers menu entry for creating compounds and the geometry icons are as default there etc. - So if you have ADe v1 too, then use that instead!

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

Won't just setting the blend mode of the square star from Normal to Erase do what you want?

 

erase.png

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

3 minutes ago, carl123 said:

Won't just setting the blend mode of the square star from Normal to Erase do what you want?

But it will cause rasterization on Export, which may not be desirable.

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

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

 

11 hours ago, rawalanche said:

Is this really only procedure to achieve this result? Surely there must be some other route to create compounds.

I have set keyboard shortcuts, so to create a compound I use Control + C to release the compound I use Shift + Control + C, the only issue with this is it always defaults to a boolean of Geometry: Add and you have to change the boolean within the compound to the boolean of your choice, this is where the Alt key and click on the selected boolean option becomes a faster method.  

image.thumb.png.15b6ea12e286b6380fffb58ddc672e5b.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

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.