• Editor
  • Open from Command Line

Hello,

Just a quick question to see if it's possible to import .json files from command line.
I know it's possible to do "spine.exe myspineproject.spine" so wondering if it's feasible to add the ability to "spine.exe myspineproject.json" or if there's a command line flag that I may have missed out ( such as '-import' or something. )

Would allow us to just drag exported JSON files onto a Spine shortcut to directly open them, and have external tools just call up Spine with the correct JSON file for editing.

Thanks!

Related Discussions
...

I'm actually not aware if this is possible or not, but it's not something Nate have mentioned to me so my guess is that it isn't currently possible. Maybe it's something he can implement, what do you think Nate ?

Yeah that seems OK. Shiu, can you add a trello task and link to this thread?

Fantastic, thanks!

일 년 후

I have been trying to open up an exported .json file using the command line and have had no luck. The documentation here http://esotericsoftware.com/spine-export#Command-line also doesn't seem to indicate that it's something that is supported. Was the support for this removed at some point? I tried exactly what Stuckie mentioned... "Spine.exe hero_apprentice.json", and I get no results.

I also tried using it for the command-line exporting and got this...

My Input... Spine -i hero_apprentice.json -o output/ -e export_settings_nonessential.json
Output...ERROR: Input path must be to a Spine project file for export: hero_apprentice.json

The command line is for exporting to JSON. It doesn't support importing JSON into a project, sorry. You can do that with the UI though.

13일 후

Thanks for the reply, but I was trying to do some post processing automation on the JSON so that doesn't help much unfortunately.

I'm guessing this Trello card was maybe mistakenly added to the "Done" column then?