• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

P: Toggle between layer mask and layer

Explorer ,
Jun 16, 2020 Jun 16, 2020

Copy link to clipboard

Copied

Hello,

After updating to Photoshop 21.2.0 (June 2020 release), on a Mac, running 10.14.6, I've encountered a bug toggling between a layer mask and its layer using keyboard shortcuts (Command + \ and Command + ~).

After clicking CMD + \ , I am taken to the layer mask, as per usual, but, now it also goes into overlay mode. I have to click \ to get out of overlay mode.

This happens on all three Macs, I've used, all on 10.14.6.

Thanks, in advance, for checking into this.

Bug Fixed
TOPICS
macOS , Windows

Views

11.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , May 11, 2022 May 11, 2022

Hi there,

 

We're happy to announce the release of Photoshop 23.3.2. This update includes the fix for this issue. To see the list of all fixed issues, click here

 

To update Photoshop to 23.3.2, click "Update" in the Creative Cloud desktop app next to Photoshop. More detailed instructions for updating  

 

Let us know if the update resolves the problem for those affected and share your feedback with us.  

 

Thanks,

Mohit

Status Fixed

Votes

Translate

Translate
13 Comments
Adobe Employee ,
Jun 18, 2020 Jun 18, 2020

Copy link to clipboard

Copied

I suspect you're seeing this:  https://feedback.photoshop.com/photoshop_family/topics/photoshop-21-2-moving-layer-leaves-shadow-ima...

if you disable Legacy Compositing, does it work correctly?

Votes

Translate

Translate

Report

Report
Explorer ,
Jun 18, 2020 Jun 18, 2020

Copy link to clipboard

Copied

Jeffrey, 

Thanks for responding. Unfortunately, that did not help this issue. It still goes to rubylith mode when I toggle to the mask by using the shortcut, CMD + \ .

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jun 26, 2020 Jun 26, 2020

Copy link to clipboard

Copied

Can you make a screen recording of what you're seeing?

Votes

Translate

Translate

Report

Report
Explorer ,
Jun 26, 2020 Jun 26, 2020

Copy link to clipboard

Copied

Jeffrey,

Here is a screen recording of the problem.

Thanks.

https://www.youtube.com/watch?v=rwext35lZOE&feature=youtu.be

Votes

Translate

Translate

Report

Report
Mentor ,
Jun 26, 2020 Jun 26, 2020

Copy link to clipboard

Copied

can confirm on win10 too.

Votes

Translate

Translate

Report

Report
Participant ,
Oct 25, 2020 Oct 25, 2020

Copy link to clipboard

Copied

The problem is still there in the newly released Photoshop 22, windows 10.

Could you please at least keep what's already working??

Votes

Translate

Translate

Report

Report
Explorer ,
Apr 22, 2022 Apr 22, 2022

Copy link to clipboard

Copied

Hello,

The problem still exists, for me, I'm on a MAC, using OS 12.3.1, and Photoshop 23.3.1.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Apr 30, 2022 Apr 30, 2022

Copy link to clipboard

Copied

Looks like the change wasn't pushed to the release version of Photoshop. The fix for this will be in an forthcoming update.

Votes

Translate

Translate

Report

Report
Community Expert ,
Apr 30, 2022 Apr 30, 2022

Copy link to clipboard

Copied

@alllan – In the short term, a script could be used with a custom keyboard shortcut.

Votes

Translate

Translate

Report

Report
Explorer ,
May 01, 2022 May 01, 2022

Copy link to clipboard

Copied

Thank you, @Stephen Marsh, for that suggestion.

Votes

Translate

Translate

Report

Report
Community Expert ,
May 01, 2022 May 01, 2022

Copy link to clipboard

Copied

@alllan – no worries, just let me know if you wish to explore this workaround. It can be hard to use new keyboard shortcuts due to muscle memory, so you would need to really be feeling the pain to go down this path...

 

Edit: Better to post the scripts than not, just in case it helps somebody in the future...

 

Select the active layer mask channel:

 

selectLayerCompositeChannel("mask");

function selectLayerCompositeChannel(chanPara) {
    // "RGB" | "mask"
	var s2t = function (s) {
		return app.stringIDToTypeID(s);
	};
	var descriptor = new ActionDescriptor();
	var reference = new ActionReference();
	reference.putEnumerated( s2t( "channel" ), s2t( "channel" ), s2t( chanPara ));
	descriptor.putReference( s2t( "null" ), reference );
	descriptor.putBoolean( s2t( "makeVisible" ), false );
	executeAction(s2t( "select" ), descriptor, DialogModes.NO);
}

 

 

Select the active layer composite channel:

 

selectLayerCompositeChannel("RGB");

function selectLayerCompositeChannel(chanPara) {
    // "RGB" | "mask"
	var s2t = function (s) {
		return app.stringIDToTypeID(s);
	};
	var descriptor = new ActionDescriptor();
	var reference = new ActionReference();
	reference.putEnumerated( s2t( "channel" ), s2t( "channel" ), s2t( chanPara ));
	descriptor.putReference( s2t( "null" ), reference );
	descriptor.putBoolean( s2t( "makeVisible" ), false );
	executeAction(s2t( "select" ), descriptor, DialogModes.NO);
}

 

 

Toggle between selected composite and mask channels:

 

/* 
Based on a script by jazz-y
https://community.adobe.com/t5/photoshop-ecosystem-discussions/detect-if-mask-or-layer-is-selected-with-js-script/m-p/11153109
*/

s2t = stringIDToTypeID;

(r = new ActionReference()).putProperty(s2t('property'), p = s2t('hasUserMask'));
r.putEnumerated(s2t("layer"), s2t("ordinal"), s2t("targetEnum"));
if (executeActionGet(r).getBoolean(p)) {
    (r = new ActionReference()).putProperty(s2t('property'), p = s2t('name'));
    (r = new ActionReference()).putEnumerated(s2t("layer"), s2t("ordinal"), s2t("targetEnum"));
    layerName = executeActionGet(r).getString(p);

    (r = new ActionReference()).putProperty(s2t('property'), p = s2t('channelName'));
    r.putEnumerated(s2t("channel"), s2t("ordinal"), s2t("targetEnum"));
    channelName = executeActionGet(r).getString(p);

    (r = new ActionReference()).putProperty(s2t('property'), p = s2t('alphaChannelOptions'));
    r.putEnumerated(s2t("channel"), s2t("ordinal"), s2t("targetEnum"));
    alphaChannel = executeActionGet(r).hasKey(p)

    if (channelName.indexOf(layerName) == 0 && !alphaChannel) {
        // var select = confirm('Layer mask selected\nSelect layer?') ? 'RGB' : null
        var select = 'RGB';
    } else {
        // var select = confirm('Layer selecter\nSelect mask?') ? 'mask' : null
        var select = 'mask';
    }
    if (select) {
        (r = new ActionReference()).putEnumerated(s2t("channel"), s2t("channel"), s2t(select));
        (d = new ActionDescriptor).putReference(s2t("null"), r);
        executeAction(s2t("select"), d, DialogModes.NO);
    }
}

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

Votes

Translate

Translate

Report

Report
Adobe Employee ,
May 11, 2022 May 11, 2022

Copy link to clipboard

Copied

Hi there,

 

We're happy to announce the release of Photoshop 23.3.2. This update includes the fix for this issue. To see the list of all fixed issues, click here

 

To update Photoshop to 23.3.2, click "Update" in the Creative Cloud desktop app next to Photoshop. More detailed instructions for updating  

 

Let us know if the update resolves the problem for those affected and share your feedback with us.  

 

Thanks,

Mohit

Status Fixed

Votes

Translate

Translate

Report

Report
Explorer ,
May 11, 2022 May 11, 2022

Copy link to clipboard

Copied

LATEST

@Stephen Marsh, thank you for that detailed instruction on the scripts! You are correct, I wasn't feeling the bleeding pain to take this route. But, it's helpful to know.

And, as of version 23.3.2, the problem looks to be corrected, for me. Thanks, @Mohit Goyal .

Votes

Translate

Translate

Report

Report