Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

Situation: I want to use the current selection as a mask on layer X. Layer X already has a mask, and I want to completely replace it.

If layer X didn't already have a mask, I could do this in one step by clicking Add layer mask in the Layers palette.

Given that layer X already has a mask, what is the quickest way to do this? Can this be done in one or two steps, preferably by keystroke?

How I do it now: Drag layer X's mask to trash, click layer X, click Add layer mask. This becomes tedious when you have to do it to a lot of layers.

share|improve this question
add comment

2 Answers

Highlight Layer X and Group it (Command/Ctrl-g), apply the mask to the Group folder by clicking the mask icon at the bottom of the Layer Panel.

masks

You can then leave things as they are.. or move the mask to the layer replacing the existing mask.

If you simply want to replace the existing mask, highlight the mask thumbnail then hit these keys in this order.....

D
Command/Ctrl+Delete
Command/Ctrl+Shift+i (that's an i not an L)
Command/Ctrl+Option/Alt+Delete

What that combination does...
- reset foreground and background color
- fill selection with foreground color
- inverse selection
- fill selection with background color

You can record an action while doing this once, then assign and F key to the action so it only takes one key press in the future.

share|improve this answer
add comment

Make an action of your current workflow.

To be more specific, make an action like this:

  1. Delete mask from your current layer ( Make sure to have your layer selected when you do this. If you have your mask selected you'd always have to select the mask when running the action )

  2. Make a new Layer mask ( Make sure you have selection before you click it )

Then just give the action a shortcut.


The workflow with this action:

  1. Make your selection
  2. Select a layer with a mask
  3. Use the shortcut ...and the mask is replaced with your selection
share|improve this answer
    
By the way... I've sometimes made super small scripts that just trigger a specific action(s), because you can set virtually any shortcut for scripts, not to mention other possibilities like running multiple actions with one shortcut or running an action through all the layers or documents ...and stuff ( those things are very easy to do ). –  Joonas May 15 '13 at 11:29
    
Seriously. I need infinite amount of time to edit my comments... Site admins, can I get a special permit for that? –  Joonas May 15 '13 at 12:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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