Jump to content
You must now use your email address to sign in [click for more info] ×

Mask on group - Is it a bug ?


Recommended Posts

Hi

Is it possible to assign a mask to a group of layers?

I observed that an image disappeared if you attempted to do so.
It is very possible that this is due to poor handling on my part, but can you see if you reproduce the same thing?
If you have another solution, I'm also interested.... :) 

Here is the scenario I created:
1) load an image
2) add an adjustment layer (Level for example where you push the cursors)
3) Move this layer above the image (for testing purposes)
4) Select this layer and place it in a group.
5) Select the group and add a mask.
6) select the mask and paint a little black.

Result: the image disappears at the location of the black area....

Note that this depends on how you move the layer in the group.
There are two scenarios:
- either we select the layer by name and move it. We then obtain a group without the presence on the same line of the adjustment layer (Capture-4.1)
- either we select the layer using the icon and move it. We obtain the presence of this one in the group (Capture-4.2)

In the first case, at the end of the scenario, the mask is taken into account.
In the second, the image disappears.

I'm working on affinity photo 2.3

Best reguards

Capture d'écran-1.png

Capture-2.png

Capture-3.png

Capture-4.png

Capture-5.png

Capture-6.png

Capture-4.1.png

Capture-4.2.png

Link to comment
Share on other sites

Are you trying to selectively mask the effects of, say, the levels adjustment layer so that the levels only effect some of the image?

example of masking an adjustment layer.
Screenshot2023-12-31at12_51_34.thumb.png.93bb2c910ebfa1837299a58973cb709b.png

iMac 27" 2019 Somona 14.3.1, 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

As the image layer is nested to the group, the mask will impact this layer, too.

if the mask should not impact the image layer, you can move it out of / below the group.

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.

 

Link to comment
Share on other sites

8 minutes ago, NotMyFault said:

As the image layer is nested to the group, the mask will impact this layer, too.

I don't see the image being part of the Group in any of the screenshots.

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

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

44 minutes ago, firstdefence said:

Are you trying to selectively mask the effects of, say, the levels adjustment layer so that the levels only effect some of the image?

example of masking an adjustment layer.
Screenshot2023-12-31at12_51_34.thumb.png.93bb2c910ebfa1837299a58973cb709b.png

By example. Yes.
But i also want to affects all adjustement layers set in group to a part of the image.
I though that add a mask to the group would be the soluce.

Link to comment
Share on other sites

This is the only way I can replicate this.

  1. Add the Adjustment Layer above the Background Image
  2. Select the Group Icon, found at the bottom of the Layers Panel.
  3. With the Group Layer selected, apply the Mask, to the Group.
    • However look at the icon for the Group Layer. It's at the Far Left. It shows null icon, circle with diagonal line through it.
    • Paint Black on the Mask
  4. Move/Nest the Adjustment Layer inside the Group.
  5. The Transparency painted on the Mask is maintained.

I think this is a bug...

Affinity Photo 2.4..; Affinity Designer 2.4..; Affinity Publisher 2.4..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win10 Home Version:21H2, Build: 19044.1766: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

I think I know what you have done, you will notice that each group folder has a different icon, one group is effectively a new group as denoted by the blank dot on the folder but the other folder has the Adjustment dot.

groupfoldericons.png.9955d86619d411df69dccd5ceb88b57c.png

You must have selected the mask and adjustment layer and either right-clicked to select group or subsequently clicked on the new group icon at the bottom of the layers panel resulting in an adjustment group, while the other group was likely created by clicking on the new group icon at the bottom of the layers panel and the mask and adjustment layer subsequently added to that new group.

Try this...

in the KO group click and drag the adjustment layer that is nested in the ko group, onto the ko group folder, the icon will change on the ko group folder to match the ok folder icon and the transparency will disappear.

groupfoldericons2.png.9902ce31264d5e5a257a4e0509da7004.png

iMac 27" 2019 Somona 14.3.1, 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

Yeah, it's a bit confusing.  Look where the double lines are in the Layers panel and also the colour of the layers in the Layers panel.

- If the adjustment layer is above the double lines and is a dark grey colour, it denotes that the adjustment layer is in the mask section.

ScreenshotA.thumb.jpg.2e231d63cf6fa7a8e4d70bbb7f3bb434.jpg

 

- If the adjustment layer is below the double lines and is a light grey colour, it denotes that the adjustment layer is in the clipped or child section.

ScreenshotB.thumb.jpg.8039ed278a757c3f4fe294fcc6e32945.jpg

 

This is why you're seeing the difference.

 

Also refer to the Serif video here [3:13]:

https://www.youtube.com/watch?v=4fiCvurH0is&t=193s


 

Link to comment
Share on other sites

5 hours ago, DidierS said:

Here is the scenario I created:
1) load an image
2) add an adjustment layer (Level for example where you push the cursors)
3) Move this layer above the image (for testing purposes)
4) Select this layer and place it in a group.
5) Select the group and add a mask.
6) select the mask and paint a little black.

I have to question why you do steps 4, 5, and 6. You could simply have step four be:

4) Select the adjustment layer and paint on its builtin (but not displayed) mask.

Before Step 4:

ScreenShot2023-12-31at10_05_41AM.png.2206596e0349e08ed55f379470a4b8ef.png

After Step 4: The integrated mask magically appears as soon as I start painting.

ScreenShot2023-12-31at10_07_58AM.png.35edd534931e2b46c267c74827d7979d.png

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

1 hour ago, Old Bruce said:

I have to question why you do steps 4, 5, and 6. You could simply have step four be:

4) Select the adjustment layer and paint on its builtin (but not displayed) mask.

Before Step 4:

ScreenShot2023-12-31at10_05_41AM.png.2206596e0349e08ed55f379470a4b8ef.png

After Step 4: The integrated mask magically appears as soon as I start painting.

ScreenShot2023-12-31at10_07_58AM.png.35edd534931e2b46c267c74827d7979d.png

You're right. If I wanted to use a mask on the adjustment layer, I would do like you.
Here I presented a "simple" example.

But actually the goal is to use multiple layers in a group and hide them locally.

 

Link to comment
Share on other sites

Humm, my post must not have made it.. 😕🙃🤪🙄

Affinity Photo 2.4..; Affinity Designer 2.4..; Affinity Publisher 2.4..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win10 Home Version:21H2, Build: 19044.1766: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

Nice find.

simpler set up:

  1. create new file
  2. add any layer, e.g. rectangle in blue
  3. add empty group layer on top
  4. add mask to group in masking position
  5. delete via brush from mask: mask escapes group and impacts layer below no matter which blend mode is used for group

this issue exists in 1.10.7 and probably all v2 releases.

 

to add more insanity:

  1. Remove mask layer
  2. add a pixel layer in masking position to group
  3. start painting on pixel layer

you observe the rectangular bounding box around the painted content gets erased from lower levels.

you may need to zoom for manual redraw. Canvas, layer thumbnail and navigator preview don’t match.

 

classical Affinity „non deterministic behavior of alpha channel handling in layer blending“

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.

 

Link to comment
Share on other sites

  • Staff

Thanks all for the additional info and steps, I've replicated and logged this unexpected group masking behaviour with the developers.

On 1/1/2024 at 4:45 PM, NotMyFault said:

to add more insanity:

  1. Remove mask layer
  2. add a pixel layer in masking position to group
  3. start painting on pixel layer

I've also added these additional steps onto the report, thanks.

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.