mooses

Hi there, longtime lurker here :-)
I hope someone can help me.
I'm animating a big background image with little bits and pieces and I would like to export the large background image as jpg to keep it small, but then export the animated pieces as a regular png atlas.
How would I go about that?

Thanks :-)
mooses
mooses
  • Posts: 2

Misaki

Hi mooses, welcome to Spine forum :D

Separating the skeleton into the background and the animated pieces so that you can choose the Atlas per Skeleton option at the pack section of the export settings:
Atlas-par-Skeleton.jpg

Also, you can uncheck the Export checkbox on one of the skeletons so that export only the skeleton which has Export is checked.
properties.png


However, if you export them frequently, this approach may be tedious. So it is probably easiest to write a script and export or pack them via command line interface. There is a Save button at the bottom left corner of the Export window and Texture Packer Settings window where you can save your settings as a JSON file, which can then be read for exporting by scripts. So you can save the settings for exporting in JPEG format and the settings for exporting in PNG format as JSON files, respectively, and then load them to pack the texture atlas. However, you cannot specify which skeleton in the project to export, so you will have to export both skeletons every time, which will create extra files, but it should be more efficient than exporting them manually. For more information, please see this page in the User Guide:
Command line interface - Spine User Guide

If my explanation is not clear or you have additional questions, don't hesitate to ask!
You do not have the required permissions to view the files attached to this post.
User avatar
Misaki

Misaki
  • Posts: 756

mooses

Thank you so much for the detailed explanation! That was super clear so I have no questions so far :-)
mooses
  • Posts: 2

Misaki

I'm glad to hear that, thank you for getting back to us!
User avatar
Misaki

Misaki
  • Posts: 756


Return to Editor