jollibee

I'm trying to program a script to auto export based on config json with spine export command. But there is no way to export multi mov file based on each action for one spine project.

For example, we should export 4 mov file if the the spine project have 4 animations. Is there any way to do that? Thank you.
jollibee
Posts: 5

badlogic

Currently in the editor, using a saved configuration, you can only export a single animation to a single mov file. If you write a command line script, you could save out 4 JSON configuration files (how to described here Export - Spine User Guide: Command line) and then call the script on the command line to export the 4 movs.
User avatar
badlogic

Mario
Posts: 979

jollibee

{
"class": "com.esotericsoftware.spine.editor.Prefs$ExportVideos",
"project": "./spine.spine",
"output": "./output",
"videoType": "QuickTime",
"codec": "Animation",
"images": true,
"bones": false,
"background": { "r": 0, "g": 0, "b": 0, "a": 0 },
"quality": 30,
"fps": 30,
"others": false
}
How to specify animation in the config json file? I cannot find any information about it.

For example, spine.spine has 3 animations and should export 3 mov files. We need a json file for export mov. This is the exmaple json I saved from Spine. There is no information about how to export animation a, b or c.

I tried add animation to json file, but it does not work:
"images": true,
"bones": false,
"animation": "a",
jollibee
Posts: 5


Return to Editor
cron