• Editor
  • Custom Export for PNG?

Is there a way to set a naming rule for exporting animations in PNG? I need to export the PNGs with just numbers, like 00 to 10, while excluding the Project, Skeleton, and Animation name.

    Related Discussions
    ...

    skarasuko Unfortunately, it should not be possible because the shortest naming would be one that uses underscores and numbers, such as _0.png. Therefore, I think it would be better to write a script that would perform a series of operations, from exporting the skeleton as a PNG format to changing the name of the exported files.

    To export the animations via CLI, first save the settings to export them in PNG format as a JSON file, and then specify the path to the JSON file when executing the -e or --export command.

      Misaki Sorry, could you please detail the solution you provided? I do not know what to even modify in the .json file, but I'm not sure if it's practical to use it if I need to change the destination folder for different exports.

      In my case, I want to control the naming behavior according to the needs of a game developing group. Some PNGs need to be in a named sub-folder, so the PNG file names only need to be numbers. My clients may demand different number of digits (0, 00, 000, 0000).

      I definitely think it's beneficial to have more Export customization in the Editor, such as being able to create a new subfolder based on specific names, like the animation name. Also, the dashes (-) are not good for game programming.

        skarasuko Sorry for the confusion! I didn't mean to modify the JSON file, I meant that I thought it would be a good idea to create a shell or batch script that would remove the unnecessary part of the name of the PNGs in the folder to which the exported images are exported.

        I definitely think it's beneficial to have more Export customization in the Editor, such as being able to create a new subfolder based on specific names, like the animation name. Also, the dashes (-) are not good for game programming.

        I agree with your opinion so I have created an issue ticket for this:
        EsotericSoftware/spine-editor761
        You can subscribe to the issue ticket to receive additional notifications of progress.