P: Hidden layers linked layer made visible when duplicated

2 Votes
Explorer ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

When i duplicate a layer group with hidden layers the hidden layers are turned back on within the new duplicated group . Is it possible to keep the turn hidden and visble the same as the original group.

Bug Fixed
TOPICS
macOS , Windows

Views

597

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 , Apr 12, 2022 Apr 12, 2022
Hi all,   We're happy to announce the April 2022 release of Photoshop 23.3. This update includes the fix for this issue.   To update Photoshop to 23.3, 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, Nikunj

Votes

Translate

Translate
11 Comments
Adobe Community Professional ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

To be honest, I do not remember that such a problem once was. What version of photoshop are you using?

 

Votes

Translate

Translate

Report

Report
Explorer ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

hers a screen grab  of the problem

malcolmw53489852_0-1646828579198.png

 

Adobe Photoshop Version: 23.1.1 20220106.r.202 060a6d1 x64 Windows 10

Votes

Translate

Translate

Report

Report
Adobe Community Professional ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

I installed 23.1.1 20220106.r.202, repeated the layer structure from your document and still don't see this problem.

Do you encounter this Photoshop behavior all the time or only in certain documents? I admit that there may be a problem with the internal structure of the file. Have you tried resaving the files in a different format or recreating them?

Votes

Translate

Translate

Report

Report
Explorer ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

this is an intermitant fault , it's not affected by saving ( recreating is to much work at this time), however when i create a  new file  the problem isnt there .

Groups are often dragged across from other open psd's 

Votes

Translate

Translate

Report

Report
Adobe Community Professional ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

Try to reduce the file size by removing unnecessary layers (leaving the minimum set that allows to reproduce the error), remove the content that is critical for you (fill it with one color, erase, etc.), attach the file to the message or a link to it. I will try to check layers attributes with a script. Also, the sample file can help the Adobe staff who track topics with bugs.

Votes

Translate

Translate

Report

Report
Explorer ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Adobe Community Professional ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

It seems that the problem is related to the fact that the layers are linked. If you remove the link, then everything works as expected. If any invisible layer has a link, then it becomes visible when copied. This works not only on your file, but on a newly created document.

 

I can't find a logical explanation for this 🙂 It really looks like a bug. I hope that Adobe staff will be interested in this topic and will be able to either explain this behavior or try to fix it in future versions of Photoshop.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

This is a legacy behavior going back to Photoshop 3.0. We have an issue logged.


Senior Product Manager - Customer Advocacy - Digital Imaging
Bug Acknowledged

Votes

Translate

Translate

Report

Report
Adobe Community Professional ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

Tried to change this behavior 🙂 Script saves the visibility of the layers at the moment of their selection and, after executing the duplicate command, compares the state of the layers before and after copying.

I didn't make support for drag and drop from document to document. This is due to the fact that the intensity of the script call increases significantly (however, this is possible). In the video example, I do not drag, but copy the group between documents - this way works.

#target photoshop;
var UUID = '7c9fb9b1-890c-49ee-91cc-aab4cc85efc2',
    s2t = stringIDToTypeID,
    t2s = typeIDToStringID,
    layerID = s2t('layerID'),
    visible = s2t('visible'),
    layer = s2t('layer');
try {
    var evt = t2s(arguments[1]),
        tgt = t2s(arguments[0].getReference(s2t('null')).getDesiredClass());
    if (evt && (tgt.indexOf('ayer') > 0 || tgt == 'layerSection')) {
        var lrs = getLayers();
        if (evt == 'select' || evt == 'make') {
            putCustomOptions(UUID, (function (l) { (d = new ActionDescriptor()).putList(layer, l); return d })(findSelectedLayers(lrs.selection.reverse(), lrs.layers)), false)
        } else if (evt == 'duplicate') {
            var a = findSelectedLayers(lrs.selection.reverse(), lrs.layers);
            try { var d = getCustomOptions(UUID) } catch (e) { }
            if (d && a.count == (b = d.getList(layer)).count) {
                var ids = []
                for (var i = 0; i < a.count; i++) {
                    if (a.getObjectValue(i).getBoolean(visible) != b.getObjectValue(i).getInteger(visible))
                        ids.push(a.getObjectValue(i).getInteger(layerID))
                }
                if (ids.length) hideLayers(ids)
            }
        }
    }
} catch (e) { }
if (!evt) {
    var f = File($.fileName),
        del;
    for (var i = 0; i < app.notifiers.length; i++) {
        var ntf = app.notifiers[i]
        if (ntf.eventFile.name == f.name) { ntf.remove(); i--; del = true }
    }
    if (del) {
        alert('event listening disabled!')
    } else {
        app.notifiers.add('slct', f, 'Lyr ')
        app.notifiers.add('Dplc', f, 'Lyr ')
        app.notifiers.add('Mk  ', f)
        alert('event listening enabled!')
    }
}
function getLayers() {
    (r = new ActionReference()).putProperty(s2t("property"), s2t("json"));
    r.putEnumerated(s2t("document"), s2t("ordinal"), s2t("targetEnum"));
    (d = new ActionDescriptor()).putReference(s2t("null"), r);
    eval("var a=" + executeAction(s2t("get"), d, DialogModes.NO).getString(s2t("json")));
    return a;
}
function findSelectedLayers(idx, lrs, result, collect) {
    if (!result) result = new ActionList();
    for (var a in lrs) {
        if (!idx.length && !collect) return result
        if (equal = lrs[a].index == idx[0] || collect) {
            if (equal) idx.shift();
            var d = new ActionDescriptor();
            d.putInteger(layerID, lrs[a].id);
            d.putBoolean(visible, lrs[a].visible)
            result.putObject(layer, d)
            if (lrs[a].type == 'layerSection') findSelectedLayers(idx, lrs[a].layers, result, true)
        }
        if (lrs[a].type == 'layerSection') findSelectedLayers(idx, lrs[a].layers, result)
    }
    return result;
}
function hideLayers(ids) {
    r = new ActionReference();
    do { r.putIdentifier(s2t('layer'), ids.shift()) } while (ids.length)
    (l = new ActionList()).putReference(r);
    (d = new ActionDescriptor()).putList(s2t("target"), l);
    executeAction(s2t('hide'), d, DialogModes.NO);
}

 

Votes

Translate

Translate

Report

Report
Explorer ,
Apr 03, 2022 Apr 03, 2022

Copy link to clipboard

Copied

I hope so this is anongoing problem that's costs me Time everyday 😞

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Apr 12, 2022 Apr 12, 2022

Copy link to clipboard

Copied

LATEST

Hi all,

 

We're happy to announce the April 2022 release of Photoshop 23.3. This update includes the fix for this issue.

 

To update Photoshop to 23.3, 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,

Nikunj

 

Votes

Translate

Translate

Report

Report