Affinity Rat Posted January 2, 2024 Posted January 2, 2024 I see its possible to use another vector shape to cut a hole in a vector layer, but what about an irregular selection or pixel layer?…. Can be done, see below. Quote
Affinity Rat Posted January 3, 2024 Author Posted January 3, 2024 I presume, to do this would necessitate, converting a pixel layer to a vector layer which at present is not possible. I was wrong see below. Oufti 1 Quote
NotMyFault Posted January 3, 2024 Posted January 3, 2024 You can use any pixel layer as mask to make parts of a vector shape invisible. Just nest it to the masking position (not child / clipping position). The alpha values are used to mask the vector layer. All color values are ignored (taken from vector layer). Affinity Rat 1 Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
NotMyFault Posted January 3, 2024 Posted January 3, 2024 If you want to use the lightness value (black: hiding, white: revealing), just set a blend range on the pixel layer from 0/0 to 1/1 on source. Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
Affinity Rat Posted January 4, 2024 Author Posted January 4, 2024 3 hours ago, NotMyFault said: Just nest it to the masking position (not child / clipping position). The alpha values are used to mask the vector layer. All color values are ignored (taken from vector layer). Thank you NotMyFault, but how to do that, a screen recording of whole process would be fantastic. Quote
Affinity Rat Posted January 4, 2024 Author Posted January 4, 2024 I see that in APho, setting a pixel layer blend mode to erase seems to allow layers below vector layer to be visible, but doesnt seem to work in ADez. Quote
Affinity Rat Posted January 4, 2024 Author Posted January 4, 2024 ok, I was wrong, does work in ADez, but erase cuts hole in all layers not just vector layer, possible to prevent lower levels being cut? Didnt seem to behave this way in APho tho. Quote
Affinity Rat Posted January 4, 2024 Author Posted January 4, 2024 Another example without pixel layer mask Quote
Affinity Rat Posted January 4, 2024 Author Posted January 4, 2024 Really pleased the way this works, numerous vector objects cut, simplifies my design by allowing one vector layer separated into multiple pieces by using a pixel based layer to erase all the unwanted parts of vector layers leaving the background visible. Quote
walt.farrell Posted January 4, 2024 Posted January 4, 2024 5 hours ago, Affinity Rat said: Really pleased the way this works, numerous vector objects cut, simplifies my design by allowing one vector layer separated into multiple pieces by using a pixel based layer to erase all the unwanted parts of vector layers leaving the background visible. However, you may find that when you Export, those vector objects will be rasterized. Quote -- 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.5, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.4
Affinity Rat Posted January 4, 2024 Author Posted January 4, 2024 38 minutes ago, walt.farrell said: However, you may find that when you Export, those vector objects will be rasterized. Not sure I understand, when exported to flat format ie jpg png it looks fine, if exported to format preserving layer svg, psd the erasure is lost. Exported to psd, the blend mode attribute was lost, the the vector layer was still present, so only had to re-establish erase blend mode, and the exported psd version looked identical to ADez. Maybe I’m missing something here. Quote
walt.farrell Posted January 4, 2024 Posted January 4, 2024 1 hour ago, Affinity Rat said: Not sure I understand, when exported to flat format ie jpg png it looks fine, if exported to format preserving layer svg, psd the erasure is lost. I was expecting that export to SVG or PDF would maintain the erasure, but rasterize the objects from which you erased info. Quote -- 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.5, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.4
Affinity Rat Posted January 4, 2024 Author Posted January 4, 2024 No in the psd, and svg the vector layer was maintained but the blend mode set to normal. The last uploaded png image is the svg screenshot after blend mode of pixel layer changed to erase. I didnt try the pdf. Untitled.svg Untitled.psd Quote
Affinity Rat Posted January 6, 2024 Author Posted January 6, 2024 As Walt hinted, your results might vary. Quote
Affinity Rat Posted January 8, 2024 Author Posted January 8, 2024 The solution as shown by @Callum is here Quote
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.