P: Rename multiple layers in one go

1 Vote
Community Beginner ,
Mar 22, 2012 Mar 22, 2012

Copy link to clipboard

Copied

Renaming each individual layer is rather slow, what if we can rename all selected layers at once?

Idea Released
TOPICS
macOS , Windows

Views

2.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 , Mar 22, 2012 Mar 22, 2012
You can do this in Photoshop CS6. Double-Click a layer name to rename it, then hit tab to put focus on the next layer to rename it....and so on. Note: Shift + tab moves up the layer stack, tab moves down the layer stack.

Votes

Translate

Translate
8 Comments
Adobe Employee ,
Mar 22, 2012 Mar 22, 2012

Copy link to clipboard

Copied

You can do this in Photoshop CS6.

Double-Click a layer name to rename it, then hit tab to put focus on the next layer to rename it....and so on.

Note: Shift + tab moves up the layer stack, tab moves down the layer stack.

Senior Product Manager - Customer Advocacy - Digital Imaging

Votes

Translate

Translate

Report

Report
Community Beginner ,
Mar 22, 2012 Mar 22, 2012

Copy link to clipboard

Copied

Ahhhhh. *Leans back in chair, happy*

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Mar 22, 2012 Mar 22, 2012

Copy link to clipboard

Copied

Is that what you were looking for? I couldn't see wanting to name 20 layers all the same name. 😉

Senior Product Manager - Customer Advocacy - Digital Imaging

Votes

Translate

Translate

Report

Report
Community Beginner ,
Mar 22, 2012 Mar 22, 2012

Copy link to clipboard

Copied

Yes... I know what you mean though but there are instances where I've needed to name things the same.

Votes

Translate

Translate

Report

Report
New Here ,
Jan 24, 2022 Jan 24, 2022

Copy link to clipboard

Copied

I need to do this though. Is there a quick way to do it without having to copy and past over and over again?

Votes

Translate

Translate

Report

Report
Adobe Community Professional ,
Jan 24, 2022 Jan 24, 2022

Copy link to clipboard

Copied

quote

I need to do this though. Is there a quick way to do it without having to copy and past over and over again?

 

@Julien5C96 

 

You can do this using a free script from Paul Riggott. The find is regular expression based, so .+ will find the entire layer name:

 

pr-layer-name-editor.gif

 

https://github.com/Paul-Riggott/PS-Scripts/blob/master/Layer%20Name%20Edit.jsx

 

Change line 20 from:

 

var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);

 

to something like:

 

var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.2, 0.2, 0.2, 1]);

 

For a "dark mode" interface.

 

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

 

Votes

Translate

Translate

Report

Report
Adobe Community Professional ,
Jan 24, 2022 Jan 24, 2022

Copy link to clipboard

Copied

The following script will probably be easier to use if you don't know regular expressions:

 

/*
Rename Selected Layers.jsx
https://community.adobe.com/t5/photoshop-ecosystem-discussions/trouble-with-photoshop-layer-masks/td-p/12698065
Stephen Marsh, 25th January 2022 - v1.0
*/

#target photoshop

function main() {

    var promptString = prompt("New layer name:", "");

    // Optionally select all layers, uncomment if required
    //app.runMenuItem(stringIDToTypeID('selectAllLayers'));

    /***** Process Selected Layers from Jazz-y *****/
    var s2t = stringIDToTypeID;
    (r = new ActionReference).putProperty(s2t('property'), p = s2t('targetLayersIDs'));
    r.putEnumerated(s2t('document'), s2t('ordinal'), s2t('targetEnum'));
    var lrs = executeActionGet(r).getList(p),
        sel = new ActionReference();

    for (var i = 0; i < lrs.count; i++) {
        sel.putIdentifier(s2t('layer'), p = lrs.getReference(i).getIdentifier(s2t('layerID')));
        (r = new ActionReference).putIdentifier(s2t('layer'), p);
        (d = new ActionDescriptor()).putReference(s2t("target"), r);
        executeAction(s2t('select'), d, DialogModes.NO);
    /***** Process Selected Layers from Jazz-y *****/

        if (app.documents.length > 0) {

            app.activeDocument.activeLayer.name = promptString;

        } else {
            alert("You must have a document open!");
        }
    }
}
app.activeDocument.suspendHistory("Rename selected layers", "main()");

 

 

 

Votes

Translate

Translate

Report

Report
New Here ,
Jan 25, 2022 Jan 25, 2022

Copy link to clipboard

Copied

LATEST

Thank you. Does this work with renaming artboards as well?

Votes

Translate

Translate

Report

Report