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 ...
随机推荐
- 通过button返回一个action,跳转到一个view
可以参考采购单的右侧按钮的写法. 简单讲,就是先通过xmlid获取到action_id,继而获取到action,修改action的相关信息,然后将结果返回,即可以实现跳转. mod_obj = sel ...
- 全选,不选,反选js
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name ...
- c语言中的文件流
一.打开和关闭文件 #include int main( void ) { FILE* pReadFile = fopen( "E:\\mytest.txt", "r&q ...
- log4net 添加自定义日志到数据库
添加操作日志到数据库举例: (一)建立数据库的操作日志表,如下我建立了一个简单的日志表 (二)配置文件中的配置如下 <log4net> <!--错误日志记录数据库--> < ...
- NeuSoft(4)编写字符设备驱动
1.要求:实现简单的字符设备驱动程序 2.源码清单 #include <linux/module.h> #include <linux/types.h> #include &l ...
- @property语句
@property声明的形式是: @property ( attributes ) type name; type和name的含义一目了然,attributes描述了如何编写访问器. 一.assign ...
- oracle空间管理
表空间:组织数据文件的一种途径, 是一个逻辑概念 包含有 表,字段,索引 一个数据库可以对应多个表空间 一个物理文件对应一个表空间 任何一个数据库创建的第一一个表空间是 system Tables ...
- 过河问题nyoj47
时间限制:1000 ms | 内存限制:65535 KB 难度:5 描述 在漆黑的夜里,N位旅行者来到了一座狭窄而且没有护栏的桥边.如果不借助手电筒的话,大家是无论如何也不敢过桥去的.不幸的是 ...
- JS判断客户端系统 让ipad iphone 等手持设备自动跳到手机版
if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) { location.replace("http:// ...
- 初学编写JAVA程序
一.编写JAVA程序 编写JAVA程序,输出一行文本信息:“Hello world”,选择编辑器eclipse,打开之后编写程序 public class Hello{ public static v ...
