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

Layers panel with toggle to hide layer but keep effect

Advocate ,
Jan 29, 2025 Jan 29, 2025

Copy link to clipboard

Copied

Would be nice to have a toggle that turns off the layer object but keep the Layer Style on. For example, like in AE, would like to apply shadow to an object, but not see the object and only have the shadow layer style in use... etc...

Todd_Morgan_1-1738174627295.png

 

 

TOPICS
Windows

Views

131

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
Adobe
Community Expert ,
Jan 30, 2025 Jan 30, 2025

Copy link to clipboard

Copied

Hit shift-0 twice in rapid succession. .

Votes

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
Advocate ,
Jan 30, 2025 Jan 30, 2025

Copy link to clipboard

Copied

Doesn't work

 

Votes

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
Community Expert ,
Jan 30, 2025 Jan 30, 2025

Copy link to clipboard

Copied

Does hitting shift-5 set the Fill to 50%? 

 

Votes

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
Community Expert ,
Jan 30, 2025 Jan 30, 2025

Copy link to clipboard

Copied

The shortcut can be tricky, alternatively just turn 'Fill Opacity' to 0%

Dave

Votes

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
Community Expert ,
Jan 31, 2025 Jan 31, 2025

Copy link to clipboard

Copied

quote

The shortcut can be tricky, alternatively just turn 'Fill Opacity' to 0%

Dave

This could be recorded in an Action and a shortcut assigned to that. 

Votes

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
Advocate ,
Jan 31, 2025 Jan 31, 2025

Copy link to clipboard

Copied

Doesn't work either

Votes

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
Community Expert ,
Jan 31, 2025 Jan 31, 2025

Copy link to clipboard

Copied

Could you please post screenshots taken at View > 100% with the pertinent Panels (Toolbar, Layers, Options Bar, …) visible

Of both states (with 100% Fill and 0% Fill)? 

Votes

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
Community Expert ,
Jan 31, 2025 Jan 31, 2025

Copy link to clipboard

Copied

Works as expected here. 

Screenshot 2025-01-31 at 14.41.43.pngScreenshot 2025-01-31 at 14.41.47.png

Votes

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
Community Expert ,
Feb 03, 2025 Feb 03, 2025

Copy link to clipboard

Copied

LATEST

Fill  works here also, used it for years.
That is the difference between Opacity and Fill. Opacity impacts the transparency of everything on the layer, whereas Fill reduces the transparency of pixels (or shape or text) but leaves layer effects unchanged. (Not sure why they label it Fill Opacity in blending options though).
https://helpx.adobe.com/uk/photoshop/using/layer-opacity-blending.html

 

Dave

Votes

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
Community Expert ,
Jan 31, 2025 Jan 31, 2025

Copy link to clipboard

Copied

@Todd_Morgan 

 

Although keyboard shortcuts or actions can do this, I decided to create a script as that can contain extended conditional logic (as opposed to the limited logic available to conditional actions). A custom keyboard shortcut can be assigned to scripts installed in the Preset/Scripts directory, or you could record the script execution into an action and use an action F-Key shortcut:

 

  • Check for an active layer
  • Check that the active layer is not the Background layer
  • Check if the active layer has a layer style
  • Check the current fill opacity is either 100% or 0%
  • Toggle the fill opacity as above

 

/*
Toggle Layer Fill Opacity.jsx
Stephen Marsh
v1.0 - 1st February 2025
https://community.adobe.com/t5/photoshop-ecosystem-discussions/layers-panel-with-toggle-to-hide-layer-but-keep-effect/td-p/15119972
*/

#target photoshop

// Ensure a document is open
if (app.documents.length > 0) {
    var doc = app.activeDocument;

    // Check if the active layer is the background layer
    if (!doc.activeLayer.isBackgroundLayer) {
        var layer = doc.activeLayer;

        // Check for an active layer by jazz-y
        s2t = stringIDToTypeID;
        (r = new ActionReference()).putProperty(s2t('property'), p = s2t('targetLayers'));
        r.putEnumerated(s2t("document"), s2t("ordinal"), s2t("targetEnum"));
        if (executeActionGet(r).getList(p).count) {

            // Check if the layer has a style
            var hasLayerStyle = false;
            try {
                var styleReference = new ActionReference();
                styleReference.putProperty(s2t('property'), s2t('layerEffects'));
                styleReference.putEnumerated(s2t('layer'), s2t('ordinal'), s2t('targetEnum'));
                var styleDescriptor = executeActionGet(styleReference);
                if (styleDescriptor.hasKey(s2t('layerEffects'))) {
                    hasLayerStyle = true;
                }
            } catch (e) { }

            // Check the current fill opacity if the layer has a style
            if (hasLayerStyle) {
                var currentFillOpacity = layer.fillOpacity;

                // Toggle the fill opacity
                if (currentFillOpacity == 100) {
                    layer.fillOpacity = 0;
                } else if (currentFillOpacity == 0) {
                    layer.fillOpacity = 100;
                } else {
                    //alert("The fill opacity is neither 0% nor 100%! Current fill opacity: " + currentFillOpacity + "%");
                }
            } else {
                //alert("The layer does not have a style!");
            }
        }
    } else {
        //alert("The active layer is the Background layer!");
    }
} else {
    alert("No document is open!");
}

 

  1. Copy the code text to the clipboard
  2. Open a new blank file in a plain-text editor (not in a word processor)
  3. Paste the code in
  4. Save as a plain text format file – .txt
  5. Rename the saved file extension from .txt to .jsx
  6. Install or browse to the .jsx file to run (see below)

 

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

Votes

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
Advocate ,
Feb 03, 2025 Feb 03, 2025

Copy link to clipboard

Copied

Hmmmm will give a try this week and report back...

Votes

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