ShiftedDesign

Is there a way to do a relative export path when exporting .json files?

I've tried a few things but have gotten mixed results non-of which are great.
Any info on this would be much appreciated.
ShiftedDesign
  • 記事: 6

Nate

You can enter a relative path on the export dialog, but it is converted to an absolute path (relative to the project file).

What is the goal? Are you sharing the project file with other users/computers and want the export to go to a path relative to the project file?

FWIW, you can export from the command line using relative paths:
Export - Spine User Guide: Command line
アバター
Nate

Nate
  • 記事: 9642

ShiftedDesign

Hey Nate, thanks for the reply, and yeah we have multiple people working in the files and unfortunately not everyone's directory is the same.
I was hoping that we could put relative paths from the project to get to the same final exported folder even with different main directories.

As for the command line that would probably work but some of our designers aren't as technically skilled and would immediately be turned off using a command prompt.

Cheers,
ShiftedDesign
  • 記事: 6

Erika

Hello! As an artist myself, I can say double-clicking a .bat file with all the needed commands inside and getting what I need is easy enough to manage :D if your team is on windows you might want to consider that!
アバター
Erika

Erikari
  • 記事: 2412

ShiftedDesign

Yeah, I think we will be going with something similar, thanks for the feedback! :D
ShiftedDesign
  • 記事: 6

martinr

Bumping this thread as we are interested in having relative paths in the export dialog as well.
We are already using command line for generating the json, however for live reload it is much faster to export from spine. It would be nice to be able to share the export settings between users. I've made a topic (Improving CLI export time) describing our issue where we found the solution to be using spines own export.
martinr
  • 記事: 28

Erika

Here's a user created issue: Allow export paths relative to the spine project file location · #515 · EsotericSoftware/spine-editor
I'll link this thread to it as reference.
アバター
Erika

Erikari
  • 記事: 2412


Return to Editor