• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
20

How to export with layer name when "Export layers to files"

Explorer ,
Feb 18, 2024 Feb 18, 2024

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. 

TOPICS
Actions and scripting , macOS , Windows

Views

373

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

Community Expert , Feb 19, 2024 Feb 19, 2024

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:

code1.png

To:

code2.png

 

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

...

Votes

Translate

Translate
Adobe
Community Expert ,
Feb 19, 2024 Feb 19, 2024

Copy link to clipboard

Copied

@Kaladdune 

 

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.

Votes

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
Community Expert ,
Feb 19, 2024 Feb 19, 2024

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:

code1.png

To:

code2.png

 

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

 

Votes

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
Explorer ,
Feb 23, 2024 Feb 23, 2024

Copy link to clipboard

Copied

LATEST

Thank you so much. I handled the situation in a different way. But I will try this method

Votes

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