• Editor
  • Export CLI script help

Hello all,
first of all I want to excuse myself if this is already answered but was not able to find any information on this.
I am working on a script that will export a png from an animation frame.
The current issue is that we mostly have already exported files (skel + atlas + png).
The issue at the moment is that after importing the skel and unpacking the atlas, the image path is lost so the textures don't bind to the character. This morning it worked once upon moving the unpacked pictures in the folder with the spine project created from the import but I can't get it done again, I am probably missing something.

Could you help me on creating a script to import the files properly so I can use the files to export a PNG?
Any additional help regarding Spine CLI is going to be of great help.

Best regards and thank you in advance,
Nikolay

  • इस पर Misaki ने जवाब दिया।
    Related Discussions
    ...

    ezio Unfortunately, Spine is currently unable to import skeletons via CLI. This is one of the things we would like to improve, but I am afraid we do not know when exactly we will be able to add this feature. We apologize for the inconvenience, but please import your skeleton data with Spine UI.

    • SilverStraw ने इसे लाइक किया।

    Hello Misaki,

    thank you for the quick answer. I see. I was actually able to do this:

    Spine atlas unpacking | Spine export using json settings for PNG export
    ( Spine -i . -o . -c ./skeleton.atlas | Spine -i ./skeleton.skel -o ./output.png -e ../settings.json )

    This leaves bunch of image files but it should be easy to be deleted after the export of png.

    If you have any other recommendation, I am all ears.
    Thanks again,
    Nikolay

    • इस पर Misaki ने जवाब दिया।

      ezio Ah, it is certainly possible to unpack and export using only the CLI. However, changing the images folder path via the CLI cannot be done via the CLI. That's where you're having trouble, isn't it? When exporting skeleton in binary format, if the Nonessential option is unchecked, the images path is not saved in the exported data, so if there is no information in the .skel file, you have to import it into Spine and set the image path manually. Which data is Nonessential is explained in the binary format documentation:
      http://esotericsoftware.com/spine-binary-format#Format

      • SilverStraw ने इसे लाइक किया।

      Hello again Misaki,

      I was thinking that I have to manually update the image path but as I see, it was able to automatically link the images to the body parts so my questions was answered.
      In the even without the nonessential option, the CLI was still able to export an image from already exported assets and I am currently waiting on the script to finish exporting over 500 png's.
      I want to say big thanks for all the information and wish all the best.

      Nikolay

      • इस पर Misaki ने जवाब दिया।
      • Nate ने इसे लाइक किया।

        ezio Great, I'm glad to hear your problem is solved. Thank you for getting back to us!