Shape with layer mask issue

  • 1
  • Problem
  • Updated 3 months ago
  • Solved
This is maddening. When using a layer mask on a shape layer, then hitting the "X" button (to switch foreground and background color while on the layer mask) it changes the shape fill color instead of swapping the foreground/background colors so that I can add to or subtract from my layer mask! And there is no undo for it! Please fix this glitch.
Photo of Dane Foster

Dane Foster

  • 3 Posts
  • 0 Reply Likes

Posted 3 months ago

  • 1
Photo of Cristen Gillespie

Cristen Gillespie

  • 1095 Posts
  • 287 Reply Likes
Could you provide more information? What version of PS are you using? What OS? I just tested this on El Capitan with the latest release version and I can switch between foreground and background colors using the X key without any difficulty. I tried it on more than one file.

Is it possible that your preferences are corrupt? In this example of a simple rectangle shape, I painted on the mask, switched colors, painted out some of the mask, switched again, etc. I even changed the color of the rectangle. I assume this is what you're talking about.

Photo of Dane Foster

Dane Foster

  • 3 Posts
  • 0 Reply Likes
Hi Cristen, thanks for the reply. I have attached three screen shots.

1) Is our system specs, which is Mac OS X El Capitan 10.11.3 running Photoshop CC 2018
2) Is a BEFORE screen shot of my current project (looking at the 300x600 size), showing a shape layer (black gradient with a layer mask in front of the text 'Hope through Recovery)
3) Is AFTER where you can see that it changes the shape layer fill instead of switching between the foreground and background so that I can add/remove to the mask. You can even see in the History window where is says "Set Shape Layer Fill." The ONLY thing I did between the two screen shots is hit the "X" key on the keyboard. And it will set the Shape Fill to whatever the last one was, so if it was multi-colored it will revert to that, etc. The really crappy thing is that hitting Undo doesn't switch it back! I have to manually go into the Shape Fill Gradient pane and reset it.


I use this often, and this is frustrating. Thanks again,


Dane Foster
Digital Producer
Cox Media
Photo of Johan Elzenga

Johan Elzenga, Champion

  • 1047 Posts
  • 402 Reply Likes
Diane,

Are you sure the mask was selected and not the shape? The 'X' key did switch as expected, so the only problem is that the effect of that switch is not where you wanted it. Your screenshot doesn't show the layers panel, so we can't see what was selected when you pressed the 'X' key.

I tried it and I can't reproduce what you describe. When the mask is selected, pressing the 'X' key only changes the foreground and background colours so I can change what I paint in the mask. The shape itself is unaffected.
Photo of Dane Foster

Dane Foster

  • 3 Posts
  • 0 Reply Likes
Hi Johan. Yes, the mask was selected not the shape. Either way, it shouldn't matter as the X button should only swap foreground/background. However, I opened another new file and now it is working as it should... Maybe the file itself is corrupted? Thank you for the prompt replies and attempting to help.