Skip to main content
Participant
February 10, 2021
Question

Error trying to export layers to files in Photoshop CC

  • February 10, 2021
  • 1 reply
  • 3387 views

Hi all,

 

I am receiving the following error and cannot get the layers to export. Please help.

 

"The command "delete" is not currently available"

 

Script Alert: User canceled the operation

 

Moved from Using the Community (which is about the forums) to the correct forum... Mod
To find a forum for your program please start at https://community.adobe.com/

 

 

This topic has been closed for replies.

1 reply

Participant
September 6, 2021

I am getting the same error.

 

Does anyone have a solution for this? Very frustrating.

 

Participant
September 6, 2021

My topmost layer was a folder.

Once I made it an image layer instead, it worked.

 

This script is extremely slow, buggy, and outdated. Adobe should be embarrassed to have this running inside their software. It runs like something I hacked together in freshman year of college. 

JJMack
Community Expert
Community Expert
September 6, 2021

I would think the Export Layers to File script duration would vary greatly depending on document content. A document can have up to 8,000 Layers.  Creating 8,000 single layer view  of your document encoding a file for each view will take time.  The document you showed you have the issue with was also strange all the Layer were out of our view in a collapse Layer group and the document had a Frame Animation Time line that has a single Frame.  Not much of and Animation in my book.  We have no idea of what kind of layers Photoshop had to deal with or how many layer and layer groups were in your document top Collapse Layer group. 

 

It not a simple task to save each layer as a image file. Smart Object layer need to be Isolated and  each smart filter has  to filter the layer's pixels the transformed and distorted from the pixels Photoshop rendered for the object and the filters need to be applied in the order they were added to the layer masked by the filter mask them the smart objects layer masks need to be applied and then layer style effects  generated  before the output file can be encoded and written.  Exporting Layers to files is not a trivial operation like you seem to think it is.    How long does it take you to paint up to 8,000 pictures.

 

If is is so bad why  not just edit the Script  and fix it up the run better for your work. Search the Web may be other Photoshop users have and have made their versions available.  

 

Perhaps https://github.com/hsw107/Photoshop-Export-Layers-to-Files-Fast 

JJMack