Copy link to clipboard
Copied
Hello everyone, how to export only with layer name when 'export layers to files'. Its automatically adds prefix numbers. I just want to export only with layer names. I tried to change some scripts in Presets/Scripts/Layer Comps To Files.jsx " but it didn't work.
You can make the following edits to the "Export Layers To Files.jsx" script... Backup the original script just in case you need to revert!
From:
To:
In more detail...
Comment out (disable) the two lines as shown by adding a double forward slash //
Change –
fileNameBody += "_" + layerName;
To –
fileNameBody = layerName;
Restart Photoshop. Enjoy your layer names!
A related topic here:
https://community.adobe.com/t5/photoshop-ecosystem-discussions/export-layers-to-files/m-p/12314369
...Copy link to clipboard
Copied
Alternative Options:
1) Use Adobe Bridge or another tool to Batch Rename the files, removing the unwanted text (unfortunately, this adds an extra step)
2) Right-click on selected layers in the layers panel and use "Export As" if you only need PNG/JPEG/GIF
3) Use alternative scripts:
https://github.com/Paul-Riggott/PS-Scripts/blob/master/Layer%20Saver.jsx
https://github.com/Paul-Riggott/PS-Scripts/blob/master/Layer%20Saver%20Plus.jsx
Otherwise, one is left with editing the Adobe script, which as you have found is complex.
P.S. This isn't a bug.
Copy link to clipboard
Copied
You can make the following edits to the "Export Layers To Files.jsx" script... Backup the original script just in case you need to revert!
From:
To:
In more detail...
Comment out (disable) the two lines as shown by adding a double forward slash //
Change –
fileNameBody += "_" + layerName;
To –
fileNameBody = layerName;
Restart Photoshop. Enjoy your layer names!
A related topic here:
https://community.adobe.com/t5/photoshop-ecosystem-discussions/export-layers-to-files/m-p/12314369
Copy link to clipboard
Copied
Thank you so much. I handled the situation in a different way. But I will try this method