npm.io
0.1.8 • Published 5 years agoCLI

pixaki

Licence
ISC
Version
0.1.8
Deps
0
Size
1.9 MB
Vulns
0
Weekly
0
Stars
1

Pixaki CLI

A CLI for Pixaki 4 files.

ImageMagick

First download and install ImageMagick, this package will not work without it.

Install Globally

npm install -g pixaki

Currently, each command only exports as a spritesheet as this tool was designed, primarily, for use with Working Copy.

Usage

pixaki export <PATH> [--columns=COUNT] [--outDir=OUT_DIR] [--cwd=CURRENT_WORKING_DIRECTORY]
``

``
px e <PATH> [-c COUNT] [-o OUT_DIR] [--cwd=CURRENT_WORKING_DIRECTORY]
  • COUNT: When to "wrap" the spritesheet (defaults to 8)
  • PATH: The pixaki project(s) to export from (requires .pixaki)
  • OUT_DIR: The output folder.
  • CURRENT_WORKING_DIRECTORY: The current working directory where to look for files (this will be ignored in the outDir)
Example
pixaki export my-sprite.pixaki
pixaki export 'my-art/**.*.pixaki' --outDir=some-folder
pixaki export my-sprite.pixaki --columns=4
px e my-sprite.pixaki -c 4 -o some-folder
Specific layer exporting

This will grab 1 layer by name and create a spritesheet out of it. It will not respect any visibility or opacity settings and will be the raw drawing. Originally designed for exporting texture mapping. (Normals, Masks etc.)

pixaki layer <PATH> <LAYER_NAME> [-c, --columns=COUNT] [-o, --outDir=OUT_DIR]
px l <PATH> <LAYER_NAME> [-c, --columns=COUNT] [-o, --outDir=OUT_DIR]
  • LAYER_NAME: can be anything, it just has to match a layer name within Pixaki