.JSON: Export Frame Tags as Frame Names?


#1

Hello again,

It would be nice if Aseprite allowed the option to name the “filename” exported in JSON to the animation tags instead of the Aseprite file name. Example:

Current JSON export:

“filename”: “[spriteSheetName] [frameNumber].ase”

Ideal JSON export:

“filename”: “[frameTag] [frameNumber].ase”

I am using Unreal Engine 4 for my project and the automatic flipbook(sprite animation) generation algorithm creates/extracts animations by frame name and number. So if two frame names are “run 1” an “run 2”, and another two are “walk 1” and “walk 2”, it will create two flipbooks named “run” and “walk” with those two frames each inside.

Thanks!


#2

Actually I think this is possible using the CLI and the –filename-format option:

aseprite -b file.ase --sheet sheet.png --filename-format "{tag} {tagframe}.ase" --json sheet.json

#3

Cool thanks, didn’t realize this was already a feature. I’ll check it out!