First, thanks for all your answers.
Unfortunately we don't want to use the polygonal packing for reasons of editing the assets directly on the atlas afterwards as well as to have a mesh as simple as possible by default and edit by hand in spine to have animations that behave well. So I'm currently working on a script (in python) which is placed after the export from photoshop and before the import in spine to be able to do this optimization and modify the json to keep the assets positioning.
when analyzing the export format of your photoshop script I identified some differences compared to your documentation proposed here: http://fr.esotericsoftware.com/spine-json-format
Indeed the hierarchy of skins is not the same:
skins": [
{
"name": "skinName",
"attachments": {
"slotName": {
"attachmentName": { "x": -4.83, "y": 10.62, "width": 63, "height": 47 },
...
},
vs (my json export from photoshop):
"skins": {
"default": {
"slotName": {
"attachmentName": { "x": 346, "y": -395.5, "width": 122, "height": 241 }
},
where the "attachments" key is ?
Moreover, when using the functionality allowing to export images in subfolders (via [folder:folderName] in the layer name) I get two nested subfolders:
images > folderName > folderName > myAttachment.png
I can't figure out why this duplicate is present here in your script code.
I'm deviating a bit from the conversation but I'd like to understand and eventually be able to send issues to your github which doesn't seem possible: https://github.com/EsotericSoftware/spine-scripts/tree/master/photoshop
Is it possible to submit issues like these or have discussions on the subject to better understand your script?
Thanks for all.