Export layers in Krita as numbered files.
This python script exports Krita layers in the format of fileName_layerIndex_layerName.
How to use
- Go to Tools -> Scripts -> Scripter and:
- paste the Python script into the text editor section OR
- go to File -> Open, navigate through the pop up file explorer and click on the python script.
- Run the Python script by hitting the play button or typing
Ctrl + R. The name of every layer exported will be printed to the console. Your exported files should be in a folder near to your Krita project file.
Warning
- You should export from a saved Krita project. An unsaved project will export the files into your home directory (within a folder named
exported_layersor whatever you set theexport_directoryto in the script.).- This has only been tested to work on Linux and Windows 11.
- You MUST have a background layer (a blank one) because background layers are ignored.
Languages
Python
100%