As well as the GUI client, Spriter also includes a command line tool for exporting data from existing project files. The tool, sprycmd.exe
, is located in the Spriter application folder.
SPRYCMD
project [/OUTPUT[:filename] | /-OUTPUT] [/F:format]
[/CSS[:filename] | /-CSS] [/HTML[:filename] | /-HTML]
[/S [/NORESULTS]]
[/LOAD:filename]
[/H | /?] [/LOG [<file>] /LOGAPPEND]
[/QUIET] [/NOLOGO] [/PAUSE] [/VERSION] [/STATISTICS] [/NOCRASHREPORT]
Option | Description |
---|---|
project | Specifies the source Spriter project. Can also be specified via the /PROJECT switch. |
/OUTPUT:[filename] | Generates sprite sheet output. If the /OUTPUT flag is omitted, the image export option of the source project is used. If the filename attribute is not specified, the image export filename of the source project is used. |
/-OUTPUT | Prevents sprite sheet output from being generated, regardless of project settings. |
/F:format | Overrides a projects output image format. Valid formats are: BMP , GIF , JPG , PNG , TIF . Default is as defined by the source project. |
/CSS:[filename] | Generates CSS output. If the /CSS flag is omitted, the CSS export option of the source project is used. If the filename attribute is not specified, the CSS export filename of the source project is used. |
/-CSS | Prevents CSS output from being generated, regardless of project settings. |
/HTML:[filename] | Generates HTML output. If the /HTML flag is omitted, the HTML export option of the source project is used. If the filename attribute is not specified, the HTML export filename of the source project is used. |
/-HTML | Prevents HTML output from being generated, regardless of project settings. |
/SPRITE | Generates sprite output. If the /SPRITE flag is omitted, the sprite export option of the source project is used. |
/-SPRITE | Prevents sprite output from being generated, regardless of project settings. |
/S | Saves the source project after a successful export |
/NORESULTS | Can only be used with the /S flag. When set, it forces the last export result information to be excluded from the source project. Do not use this option if you use CSS merge functionality. |
/H or /? | Display this message |
/LOG <file> | Writes output to a log file. If <file> is not specified, a default name will be used |
/LOGAPPEND | If set and the log file already exists, new data will be appended to the file, otherwise the file is overwritten |
/QUIET | Suppresses most standard output |
/PAUSE | Prompts the user to press a key before the program ends |
/NOLOGO | Do not display the startup banner and copyright message |
/VERSION | Display version information only |
/STATISTICS | Display execution statistics |
/NOCRASHREPORT | Disable automatic crash logging and solution checking |
/list-arguments | Displays how input arguments were interpreted, then exits without performing any actions |