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

Converting mask to pixel layer


Recommended Posts

I'm currently puzzling over the simplest way to convert a mask to a pixel layer (and whether this can be made into a macro).

Currently I'm at:

  1. Release mask if it is attached to any layer, or drag to top level of layers
  2. Invert mask
  3. Put black pixel layer below mask
  4. Select mask layer
  5. Merge down
  6. Put white pixel layer below this layer
  7. Select merged layer above white layer
  8. Merge down

Any improvements?

The attached macro does steps 2 to 8, but I can't find a way to include the release into a macro. Still, it seems usable -- you just need to do step 1 by hand. You may also need to ensure nothing is selected.

Dave's Mask to Pixel Layer.afmacro

Dave Straker

Cameras: Sony A7R2, RX100V

Computers: Win10: Chillblast i9 Custom + Philips 40in 4K & Benq 23in; Surface Pro 4 i5; iPad Pro 11"

Favourite word: Aha. For me and for others.

Link to comment
Share on other sites

  • 9 months later...

Hi @nikolai.ylirotu

 

You have the channels hidden and no layer selected. Select a layer first.

Make the channels visible by clicking on the rounded arrow (circled).

Right click on a channel.

greyscale.png.2b7e1006ecf55021b46755943d0905fb.png

If you want to do it from a mask, obviously you need to create one first.

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

To add slightly to what @toltec said, only pixel layers have accessible channels, so if for example you select an "(Image)" layer, you will not get the second set of channels. If the pixel layer has been named, instead of "Pixel Red" & so on, in the channels list "Pixel" will be replaced by that name. Often, this will be "Background," but that has no special significance -- it is reference to the layer name, not its position in the layer stack.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

  • 4 months later...
  • 4 years later...
  • 3 months later...

Edit: just realized the OP was needing a fully opaque pixel layer. The following converts the mask to a pixel layer that maintains transparency, which is what I was wanting. 


A method for Designer users finding this thread (but works in Photo, too):

Underneath the mask layer  create a pixel layer*. Use flood fill tool (bucket) to fill the pixel layer with white—or any color you want. Select the mask layer and merge down.

 

*a fill layer doesn’t work

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.