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 ...
随机推荐
- 关于使用QQ、新浪微博、腾讯微博等第三方登录网站的开发过程(二)
(二).新浪微博登录 1. 首先在新浪微博开放平台注册成为开发者.[http://open.weibo.com/connect] 具体自己填写一些相关信息就OK! 2. 注册成功之后,点击[微连接], ...
- 将文件系统数据库迁移到ASM中
使用裸设备配置ASM实例 http://www.cnblogs.com/myrunning/p/4270849.html 1.查看我们创建的磁盘组 [oracle@std ~]$ export ORA ...
- HTML5文件API
File对象与File对象 Blob对象 FileReader对象 File对象 <!DOCTYPE html> <html> <head> <meta ht ...
- PHP第三方登录 -- 微博登录
进化史 博客园 首页 新随笔 联系 管理 订阅 随笔- 9 文章- 0 评论- 0 php 实现qq第三方登录 学习之前,请大家先看一下oAuth协议. 首先呢,我们进入QQ互联的官方网站 ht ...
- junit测试框架
import junit.framework.Assert; import org.junit.After; import org.junit.Before; import org.junit.Tes ...
- php实现实现代码多主从,切换,轮询,健康检查
现在很多框架现在都提供数据库读写分离,比如CI,TP,YII,一般使用正则表达书判断sql语句是读操作,还是写操作,但是有个缺点,没有给用主动判断,比如写入操作必须去立即读取主数据库的,如果不能立即判 ...
- Redis和Memcache对比及选择(转载)
- How to bind data to a user control
http://support.microsoft.com/kb/327413 Create a user control by inheriting from the System.Windows. ...
- mvc3升级mvc4的方法记录.
手工升级ASP.NET MVC 3项目: 一.安装ASP.NET MVC 4 二.升级ASP.NET MVC版本配置信息: 1:替换项目 Web.config 中的 System.Web.Mvc, V ...
- NET 框架基本原理透析⑵
生成.打包.部署及管理应用程序与类型 要生成就离不开程,序集,程序集是包含一个或多个类型定义文件和资源文件的集合.在程序集包含的所有文件中,有一个文件用于保存清单.清单是另外一组元数据表的集合,其中主 ...
