Created
September 17, 2020 15:11
-
-
Save PierBover/b08b1beb3286012d1e64278c9af89c08 to your computer and use it in GitHub Desktop.
Rename Photoshop Layers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var activeLayerRef = app.activeDocument.activeLayer; | |
if (activeLayerRef.artLayers) { | |
var layers = activeLayerRef.artLayers; | |
for (var i = 0; i < layers.length; i++) { | |
layers[i].name = activeLayerRef.name + '_' + (i+1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment