Spine批量导出Command line Export
1.准备工作及介绍
时间有点紧张,写的不是很详细,请见谅。
当前版本是2.2以上,购买版的。试用版的无法试用Command line
Both Spine and the Spine launcher must be 2.1.00 or higher to perform command line export. To update the Spine launcher, download and reinstall Spine.
将Spine的安装目录设置到系统环境变量中(我的电脑,右键,属性,高级系统属性,环境变量,系统变量的path 中添加)\
配置成功之后,可以在cmd命令行中输入Spine -h 会出现导出帮助。如下面:
Editor:
-h, --help Print this help message and exit.
-v, --version Print version information and exit.
-l, --logout Logout, removing activation code.
-k, --keys Enable hotkey popups by default.
-n, --notimeout Disable timeout when checking for and downloading updates.
-x, --proxy Proxy server to use when checking for and downloading updates.
-s, --scale Experimental: UI scale, default is 1.0.
project.spine Path to Spine project file to open. Export:
-i, --input Path to Spine project file, overrides export settings JSON.
-o, --output Path to write export file(s), overrides export settings JSON.
-e, --export Path to export settings JSON file. Pack:
-i, --input Path to folder of images to be packed.
-o, --output Path to write texture atlas files.
-p, --pack Texture atlas name or path to pack settings JSON file. Examples:
Spine --export /path/to/export.json
Spine --export "/path/with spaces/to/export.json"
Spine --input /path/to/project.spine --output /path/to/output/
--export /path/to/export.json
Spine -i /path/to/project.spine -o /path/to/output/ -e /path/to/export.json
Spine -e /path/to/export1.json -e /path/to/export2.json
Spine -i /path/to/images/ -o /path/to/output/ --pack /path/to/pack.json
Spine -i /path/to/images/ -o /path/to/output/ -p /path/to/pack.json
Spine -i /path/to/project1.spine -o /path/to/output/ -e /path/to/export1.json
-i /path/to/project2.spine -e /path/to/export2.json -i /path/to/images/
-o /path/to/output/ -p /path/to/pack.json
-i 需要导出的 XX.spine路径
-o 导出路径
-e 设置json 注:我们可以在spine 软件中, spine ->export中进行设置,然后点击save,保存一个json文件,就是导出时需要的文件。我这里起名字为spinesetting.json
-i spine路径 -o 导出路径 -e setting.json路径
在工具里面,根据我们的需求设置完成后,然后点击save,保存一个json文件,就是咱们需要的json文件
另一种是 -i -o -p
-p Texture atlas name or path to pack settings JSON file.
2.使用bat,批量操作
下面是我写的一个bat命令。复制出来,然后新建个test.bat,复制就可以,然后修改一下。bat命令我不太熟悉,请见谅。。。
@echo off
set DIR=%~dp0 echo - cleanup
if exist "%DIR%SpineExport" rmdir /s /q "%DIR%SpineExport"
mkdir "%DIR%SpineExport" echo -spineExport
for /f "delims=" %%i in ('dir /b/a-d/s %DIR%SpineSource\*.spine') do Spine -i %%i -o "%DIR%SpineExport" -e "%DIR%spinesetting.json"
echo -exportEnd
pause
set DIR=%~dp0 :设置DIR变量为当前绝对路径
for /f "delims=" %%i in ('dir /b/a-d/s %DIR%SpineSource\*.spine') :遍历文件夹下和子文件夹下的.spine类型文件 ,并执行导出命令。
官网文档 http://zh.esotericsoftware.com/spine-export
Spine批量导出Command line Export的更多相关文章
- python click module for command line interface
Click Module(一) ----xiaojikuaipao The following mat ...
- java操作Excel之POI(4)利用POI实现数据的批量导出
后台导出方法: /** * 后台导出方法 * 利用POI实现数据的批量导出 */ public String export() throws Exception{ Connection con = n ...
- 批量导出VBA工程中的Source
在做Excel宏相关项目的开发和维护过程中,我们经常需要导出VBA中的Source,但是Excel提供的宏编辑器中只能一个文件一个文件地导出,很不方便. 下面介绍2种批量导出的方法: 1.Source ...
- 【mysql报错】MySQL5.7.27报错“[Warning] Using a password on the command line interface can be insecure.”
MySQL5.7.27报错“[Warning] Using a password on the command line interface can be insecure.”在命令行使用密码不安全警 ...
- 批量导出access某表内容到word文档
一.需求: 需要将表中每一条记录中的某些内容导出在一个word文档中,并将这些文档保存在指定文件夹目录下 二.界面,简单设计如下: 三.添加office相关引用 添加后可在解决方案资源管理器中看到: ...
- 15 Examples To Master Linux Command Line History
When you are using Linux command line frequently, using the history effectively can be a major produ ...
- Building Xcode iOS projects and creating *.ipa file from the command line
For our development process of iOS applications, we are using Jenkins set up on the Mac Mini Server, ...
- C# 导出word文档及批量导出word文档(4)
接下来是批量导出word文档和批量打印word文件,批量导出word文档和批量打印word文件的思路差不多,只是批量打印不用打包压缩文件,而是把所有文件合成一个word,然后通过js来调用 ...
- magento产品批量导出导入
magento产品批量导出导入 博客分类: WP / Joomla! / Magento / Shopify / Drupal / Moodle / Zimbra ExcelMobile配置管理XML ...
随机推荐
- HDU2955 背包DP
Robberies Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total S ...
- angular.js学习笔记之一
angular也是一个MVC框架,其中M即model模型表示服务器,V即view视图代表html代码,C即control控制器用来处理用户交互的部分.
- maven pom文件结构详解
POM文件结构 Project Object Model是Maven2项目的基础所在,简单来说它就是一个XML文件,Maven2用它来描述一个工程的整个生命周期所需要执行的一系列功能和特性. 最小配置 ...
- SSH框架中 Spring设置定时器 Quartz
一,首先下载quartz-1.6.0.jar架包,到lib目录下 二,写你自己定时器业务方法 package com.lbnet.lzx.timing; import org.quartz.JobEx ...
- bootstrap日期插件
<!DOCTYPE HTML> <html> <head> <link href="http://netdna.bootstrapcdn.com/t ...
- SpringMVC表单标签简介
在使用SpringMVC的时候我们可以使用Spring封装的一系列表单标签,这些标签都可以访问到ModelMap中的内容.下面将对这些标签一一介绍. 在正式介绍SpringMVC的表单标签之前,我们需 ...
- psutil 是因为该包能提升 memory_profiler 的性能
python 性能分析入门指南 一点号数据玩家昨天 限时干货下载:添加微信公众号"数据玩家「fbigdata」" 回复[7]免费获取[完整数据分析资料!(包括SPSS.SAS.SQ ...
- 杭电ACM 1013 Digital Root
#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){char s[100000];int ...
- node js 模块分类
核心模块 require('fs'); 核心模块是被编译成二进制代码 文件模块 require('../fs.js'); 对于加载模块时既没指出./ ../ /.../时,加载模块的搜索路径.如果'/ ...
- 一些asp.net使用
1.英文格式的日期转为中文格式 eg:string englishDate="03-04-2012"; string chineseDate=Regex.replace(engli ...
