JayFree Posted September 3, 2022 Share Posted September 3, 2022 I was wondering if there was anyone to add several gradient masks to one layer mask? In Photoshop you are able to add several gradient masks to one layer so for instance, I want to fade out all four sides of an image, I can. Maybe I'm missing something in Designer and Photo but currently I have to add a mask do the gradient, then add another mask to the same layer, create the gradient, and repeat the process based on how many gradients I need. Essentially, we would like to just be able to continue adding gradients to the same mask instead of creating new masks. Quote Link to comment Share on other sites More sharing options...
thomaso Posted September 4, 2022 Share Posted September 4, 2022 Hi @JayFree, welcome to the Affinity forums! In Affinity you can't apply more than 1 gradients (as fill colour) to 1 item. One workaround could be a combination of different gradient options, for instance to use a gradient fill + a gradient layer-effect. But additionally, layers of type "Mask" are limited towards other layer types, for instance they don't show layer-effects which get applied to them. So I know compromises only. In case of fade out all four sides of an image you could use a workaround of a masking rectangle shape as masking object + blur it with a Gaussian Blur Layer-Effect to cause reduced opacity at its edges. Or apply an elliptical transparency gradient to the masking shape, as kind of transparency vignette, unfortunately not rectangular, as with 4 linear gradients. Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 Link to comment Share on other sites More sharing options...
tudor Posted September 4, 2022 Share Posted September 4, 2022 1 hour ago, thomaso said: In Affinity you can't apply more than 1 gradients (as fill colour) to 1 item. Yes, you can. Here is the result: thomaso 1 Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted September 4, 2022 Share Posted September 4, 2022 5 hours ago, tudor said: Yes, you can. While true in Theorie, this does not help in the specific case of the OP: appearance panel not available in Photo Does not work on mask layers Quote 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 More sharing options...
NotMyFault Posted September 4, 2022 Share Posted September 4, 2022 (edited) 14 hours ago, JayFree said: I was wondering if there was anyone to add several gradient masks to one layer mask? In Photoshop you are able to add several gradient masks to one layer so for instance, I want to fade out all four sides of an image, I can. Maybe I'm missing something in Designer and Photo but currently I have to add a mask do the gradient, then add another mask to the same layer, create the gradient, and repeat the process based on how many gradients I need. Essentially, we would like to just be able to continue adding gradients to the same mask instead of creating new masks. You found a weak spot of Affinity Photo. Depending on your workflow needs, there are multiple workarounds possible, but all are limited and cumbersome: The method of @thomaso If you want to get fewer layers: Creating several layers as you do, and then combine them into one. Unfortunately, this will be a destructive operation. Using pixel layers, and then use them as masks with the known methods (blend mode erase & blend range settings) please note that multiple layers used as masks are always subtractive. If you want additive masks, more effort ist required Edited September 4, 2022 by NotMyFault Quote 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 More sharing options...
tudor Posted September 4, 2022 Share Posted September 4, 2022 3 minutes ago, NotMyFault said: appearance panel not available in Photo He asked about both Designer and Photo in the original post. Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted September 4, 2022 Share Posted September 4, 2022 (edited) 2 hours ago, tudor said: He asked about both Designer and Photo in the original post. You are right, but the second point still holds (does not work on mask layers) Edit: but it works on vector layers used as masks. Edited September 4, 2022 by NotMyFault Quote 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 More sharing options...
tudor Posted September 4, 2022 Share Posted September 4, 2022 1 minute ago, NotMyFault said: You are right, but the second point still holds (does not work on mask layers) It does not work on pixel masks. It does work on vector masks. Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted September 4, 2022 Share Posted September 4, 2022 (edited) 1 hour ago, tudor said: It does not work on pixel masks. It does work on vector masks. No. It does not really support transparency. If you create a radial gradient, and reduce the transparency of one node, the color is replaced by black instead of becoming transparent. (Tested on iPad). to be clear: it works in general, but it is not really usable for masking purposes. Edited September 4, 2022 by NotMyFault Quote 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 More sharing options...
tudor Posted September 4, 2022 Share Posted September 4, 2022 8 minutes ago, NotMyFault said: No. It does not support transparency. then what magic did I do in the screenshots I posted above? Quote Link to comment Share on other sites More sharing options...
GarryP Posted September 4, 2022 Share Posted September 4, 2022 One method to get masks with multiple gradients is shown in my attached video. (In the video I am just revealing layers rather than drawing them, to save time. Note the use of the Multiply blend mode.) The original “Mask four sides” layer can be saved as an Asset to be reused, and modified before making into a mask if necessary. It’s not as good as being able to add multiple gradients to a mask but someone might find it useful. This technique can be used in any of the Affinity applications. 2022-09-04 09-36-46.mp4 JayFree 1 Quote Link to comment Share on other sites More sharing options...
tudor Posted September 4, 2022 Share Posted September 4, 2022 For this type of pixel masks, I prefer the good old paint on mask technique. JayFree and GarryP 2 Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted September 4, 2022 Share Posted September 4, 2022 1 hour ago, tudor said: then what magic did I do in the screenshots I posted above? You are right. I was working on iPad, and the UI does all it can do to make this task as hard as possible, next to impossible. When using appearance panel with multiple fills, the UI jumps erratically from a selected fill to the rectangle itself. After trying again on Desktop, it worked. Quote 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 More sharing options...
telemax Posted September 4, 2022 Share Posted September 4, 2022 Yes, masks can consist of several parts, and can also be non-destructive: Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
thomaso Posted September 4, 2022 Share Posted September 4, 2022 3 hours ago, tudor said: 3 hours ago, NotMyFault said: No. It does not support transparency. then what magic did I do in the screenshots I posted above? I get a third result: it does support transparency but appears to subtract the transparent areas of several fills (while both black or white work for the non-transparent areas). – What is setup wrong below? multiple gradient mask rectangle.m4v Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 Link to comment Share on other sites More sharing options...
NotMyFault Posted September 4, 2022 Share Posted September 4, 2022 51 minutes ago, thomaso said: get a third result: it does support transparency but appears to subtract the transparent areas of several fills (while both black or white work for the non-transparent areas). – What is setup wrong below? For multiple fills, the regular layer/alpha blending is applied. It might be easier to spot if you isolate the vector mask. The blend mode allows more flexibility, e.g. to use add. And the color itself is irrelevant when used for masking. Only the opacity / transparency values of the colors matter. Quote 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 More sharing options...
tudor Posted September 4, 2022 Share Posted September 4, 2022 Another experiment with a vector mask. gradient mask.afdesign JayFree 1 Quote Link to comment Share on other sites More sharing options...
JayFree Posted January 25, 2023 Author Share Posted January 25, 2023 Thanks guys for all of the replies! Does anyone know whether they addressed this in V2? Quote Link to comment Share on other sites More sharing options...
Staff MEB Posted January 25, 2023 Staff Share Posted January 25, 2023 Hi @JayFree, Welcome to affinity Forums No changes here other than the addition of Compound Masks in Affinity Photo (ability to perform boolean operations between masks a bit like (vector) Compounds in Designer) Quote A Guide to Learning Affinity Software 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.