• EditorBugs
  • spine3.5命令行导出gif,无法指定skin和animation

我使用命令行(CLI)导出指定spine的gif,发现我修改设置json文件的skin和animation没有效果,一直导出的是默认的皮肤和动画
{
"class": "com.esotericsoftware.spine.editor.Prefs$ExportImages",
"project": "D:\ART\2018SpineAnimation\demon_jerry_chuansongmen_a2_a\demon_jerry_chuansongmen_a2_a.spine",
"output": "D:/ART/2018SpineAnimation/demon_jerry_chuansongmen_a2_a/demon_jerry_chuansongmen_a2_a",
"imageType": "GIF",
"exportType": "序列",
"animation": "当前",
"skin": "当前",
"images": true,
"bones": false,
"background": {
"r": 0.3764706,
"g": 0.3764706,
"b": 0.3764706,
"a": 1
},
"transparency": false,
"quality": 20,
"repeat": 0,
"fps": 30,
"createAtlas": false,
"others": false,
"texturePacker": null
}这个是默认的导出配置
当我修改skin和image后,
{
"class": "com.esotericsoftware.spine.editor.Prefs$ExportImages",
"project": "D:\ART\2018SpineAnimation\demon_jerry_chuansongmen_a2_a\demon_jerry_chuansongmen_a2_a.spine",
"output": "D:/ART/2018SpineAnimation/demon_jerry_chuansongmen_a2_a/demon_jerry_chuansongmen_a2_a",
"imageType": "GIF",
"exportType": "序列",
"animation": "get",
"skin": "default",
"images": true,
"bones": false,
"background": {
"r": 0.3764706,
"g": 0.3764706,
"b": 0.3764706,
"a": 1
},
"transparency": false,
"quality": 20,
"repeat": 0,
"fps": 30,
"createAtlas": false,
"others": false,
"texturePacker": null
},我无法导出我指定的皮肤动画gif

    Related Discussions
    ...

    在使用Spine 3.5的命令行导出GIF时,无法指定特定的皮肤和动画可能是因为命令行工具的限制。Spine的命令行工具在某些版本中可能不支持直接通过JSON配置文件来指定皮肤和动画。通常,命令行工具会使用项目文件中设置的默认皮肤和动画进行导出。

    要解决这个问题,您可以尝试以下方法:

    1. 在Spine编辑器中打开项目,手动设置所需的皮肤和动画为默认,然后保存项目。之后再使用命令行工具进行导出。
    2. 确保您使用的是最新版本的Spine命令行工具,因为较新的版本可能修复了此类问题。

    如果这些方法仍然无法解决问题,可能需要手动在编辑器中进行导出。

    xhwych Since you want to export in GIF format, you may want to export using a newer version instead of 3.5. When exporting from the CLI, you can specify the version with -u (--update) to leave the version of that Spine project unchanged, but only the export will be performed with the specified version.
    Unfortunately, Spine 3.5 is no longer being updated and any bugs found cannot be fixed, so please use the newer version and see if the GIF export works with the specific skin.