Copy link to clipboard
Copied
How i can duplicate layer and rename it on that way to contain current layer name + some specific text? For example if layer name is Background, i want to name duplicated layer Background retouched.
If the name varies this would need a Script.
Do you have experience with JavaScript?
Edit:
if (app.documents.length > 0) {
var theLayer = app.activeDocument.activeLayer;
var theCopy = theLayer.duplicate();
theCopy.name = theLayer.name + "_ret";
app.activeDocument.activeLayer = theCopy
};
Copy link to clipboard
Copied
If the name varies this would need a Script.
Do you have experience with JavaScript?
Edit:
if (app.documents.length > 0) {
var theLayer = app.activeDocument.activeLayer;
var theCopy = theLayer.duplicate();
theCopy.name = theLayer.name + "_ret";
app.activeDocument.activeLayer = theCopy
};