27

I have a layer in Photoshop that I'd like to use as a layer mask, is this at all possible?

It's a black & white layer with some gradients that I would like to apply to another layer that's a solid color, but I can't figure out how to just edit a layer mask to copy and paste the image in.

P.S. I have Adobe CS5

  • @ JKirchartz Can you be more specific? 1. How do I copy the layer? Did you mean duplicate it or something else? 3. Where is the mask channel I shoudl paste to? Thanks – user33459 Nov 12 '14 at 10:33
  • I've updated my answer to be more specific. – JKirchartz Nov 12 '14 at 20:32
28

Layer masks are located under the channels tab.

  1. Copy the contents of your layer by selecting it then pressing Ctrl+A to select all followed by Ctrl+C to copy.

  2. Select the layer that you want to mask and create a new mask by clicking the "add layer mask" icon at the bottom of the layers panel.

  3. Go to channels tab (at the top of the layers panel), and select the mask channel, it should be named <layername> Mask. Make sure the contents of the mask are selected (Ctrl+A), and paste the contents of the original layer into the mask channel Ctrl+V)

  • 2
    Doesn't work. The objects I copied in step 1 get pasted into the middle of the layer mask, rather than the positions they were copied from. – BlueRaja - Danny Pflughoeft May 17 '15 at 20:50
  • @BlueRaja-DannyPflughoeft did you Ctrl+A to select all of the contents of the layer you're pasting into? – JKirchartz May 18 '15 at 16:47
  • Yes. The layer is mostly transparent, with only a few items on the left-side. When you select the entire layer and copy+paste, the pasted items show up in the middle, with a selection around only them. Try it for yourself. – BlueRaja - Danny Pflughoeft May 18 '15 at 16:55
  • 1
    The trick for transparent layers I use is to create a new fill layer of white (or black) and merge this layer with the transparent layer that I want to be my mask. Then I copy this newly merged layer that has no transparency to use as my mask using the instructions in this answer. This solves the misplaced layer issue by removing the problematic transparency altogether. – Allen Pestaluky Oct 24 '17 at 17:42
  • 3
    NOTE: If you're using Creative Cloud versions of Photoshop the instructions here will not work as the interface has changed. – Steven the Easily Amused Jul 25 '18 at 0:37
18

There is another easier (imo) way to do this. Create a new layer mask for the layer you wish to apply the mask to. Click on the mask in the layer panel, then go to image > apply image.

This allows you many options, including adding layers from any open document, controlling opacity, blending modes, channels, etc.

In this case, if you already have your black and white layer ready, just select the layer name from the drop-down, hit OK, and it's done.

  • This method is excellent for preserving the transparency from a bitmap layer to a layer mask; when I needed to produce a set of alternate colour logos. Awesome technique. – starlocke Dec 17 '15 at 16:29
  • Apply image seems to only apply whatever the currently displayed composite is from the CURRENT document. BEFORE you "Apply Image" you must first turn off all the layers you DON'T want to be part of the mask. Perhaps there is a way to designate what to apply? – Steven the Easily Amused Jul 25 '18 at 0:07
  • @SteventheEasilyAmused Apply image has a lot of options. Including the option to select which layer you want to apply. Though it does only allow to select either one of the layers or "merged". – fadelm0 Jul 25 '18 at 6:28
4

For future reference – everything that they said above is correct, but if you have transparency, you need to tell it to paste in the specific location on the canvas that you copied from. You do that with "paste in place": Edit > Paste Special > Paste in Place, or just Shift-Cmd-V/Shift-Ctrl-V.

1

This isn't exactly a layer mask but creates a similar effect. In the Layers panel, put the "layer mask" layer underneath the layer that you want masked. Right click on the layer that you want masked, then choose "Create Clipping Mask."

  • Welcome to GD.SE! Can you please add screenshots to explain better what you mean ... – Mensch Nov 19 '18 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.