Macguffin

Now there are breaking changes in 3.8 I often have switch my Spine to 3.7 when doing legacy work, re-skins etc.

Would it be possible to either:
Have a saveAs - version for the JSON exporter which saves down to older versions.
Or
On the Splash Screen have a "open version" drop down like in the settings to open the correct version of Spine.
Or
Maybe if Spine detects that the saved project is on an older version of Spine it asks:
Do you want to open in 3.7 or convert to 3.8?
Or
allow version to be defined from the command like (example mac):
open -n -a /Applications/Spine/Spine.app -v3.7
I could then simply have a shortcut for the older version.

Just a thought.
Thanks
사용자 아바타
Macguffin
  • 전체글: 30

Nate

Saving as an old version isn't feasible due to how the technology works. You can specify the update on the command line though, for macOS:
open -n -a /Applications/Spine/Spine.app --update 3.7.94
Or:
open -n -a /Applications/Spine/Spine.app -u 3.7.49
사용자 아바타
Nate

Nate
  • 전체글: 9834

Macguffin

thanks for the info that will do nicely

actually it doesn't work for me.
open: invalid option -- u
open: unrecognized option `--update'
사용자 아바타
Macguffin
  • 전체글: 30

Nate

Please show your whole command.
사용자 아바타
Nate

Nate
  • 전체글: 9834

Macguffin

iMac:~ macguffin$ open -n -a /Applications/Spine/Spine.app --update 3.7.94
open: unrecognized option `--update'
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-s <partial SDK name>][-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]
Help: Open opens files from a shell.
By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL.
Options:
-a Opens with the specified application.
-b Opens with the specified application bundle identifier.
-e Opens with TextEdit.
-t Opens with default text editor.
-f Reads input from standard input and opens with TextEdit.
-F --fresh Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents.
-R, --reveal Selects in the Finder instead of opening.
also tried
open -n -a /Applications/Spine/Spine.app --u 3.7.94
if I use
open -n -a /Applications/Spine/Spine.app
it does open
사용자 아바타
Macguffin
  • 전체글: 30

Mario

/Applications/Spine/Spine.app/Contents/MacOS/Spine -u 3.7.94 will do the trick.
사용자 아바타
Mario

Mario
  • 전체글: 2297

Macguffin

working thanks for your help :)
사용자 아바타
Macguffin
  • 전체글: 30

Nate

FWIW to use open it looks like we need the --args parameter:
open -n -a /Applications/Spine/Spine.app --args --update 3.7.94
사용자 아바타
Nate

Nate
  • 전체글: 9834

Macguffin

Wondering are there any additional args available, specifically screenResolution? I have to set it to 100% for <3.8 and 200% for >3.8.

Not a big deal just wondered if I could specify that in the command line as well.

Thanks
사용자 아바타
Macguffin
  • 전체글: 30

Mario

I'm afraid that's not possible. The setting is stored in your prefs.json file in <user home dir>/Library/Application Support/Spine/prefs.json. You could have a prefs-3.7.json and a prefs-3.8.json which store the respective percentages, then write a bash script that copies those files over to the prefs.json Spine uses, and also starts Spine.
사용자 아바타
Mario

Mario
  • 전체글: 2297


다시 돌아감: Editor