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 ...
随机推荐
- linux连接12tp vpn
参考连接: http://nanjingabcdefg.is-programmer.com/posts/25458.html 安装: yum install -y xl2tpd 配置:vim /etc ...
- sublime text 3 package control
使用Ctrl+`快捷键或者通过View->Show Console菜单打开命令行,粘贴如下代码: import urllib.request,os; pf = 'Package Control. ...
- tab左右箭头切换
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- c#中的math类
http://wenku.baidu.com/link?url=TliiVtdB8IeO3wiM9mVSD-3wLZcLum7dsXlEZgSKawo6x-qvE_G3VL_yDa3ZQ_9ZFlGG ...
- markdown语法学习笔记
##1.**标题** # 一级标题 ## 二级标题 ### 三级标题 #### 四级标题 ##### 五级标题 ###### 六级标题 ##2.**加粗** 首尾各加两个*号 ##3.*斜字体 ...
- Spring的quartz定时器同一时刻重复执行二次的问题解决
最近用Spring的quartz定时器的时候,发现到时间后,任务总是重复执行两次,在tomcat或jboss下都如此. 打印出他们的hashcode,发现是不一样的,也就是说,在web容器启动的时候, ...
- Android课程---环境配置很重要
- IOS第14天(2, Modal控制)
******控制器modal - (void)btnClick { // 创建控制器对象 HMJumpViewController *jump = [[HMJumpViewController all ...
- MySQL- -Join语法解析与性能分析
Mysql Join语法解析与性能分析 一.Join语法概述 join 用于多表中字段之间的联系,语法如下: ... FROM table1 INNER|LEFT|RIGHT JOIN table2 ...
- IntelliJ IDEA全文搜索很给力
