https://github.com/stephannv/aseprite_listener
Listen changes on .ase/.aseprite files in specific folder and export .png and .json to a target folder
https://github.com/stephannv/aseprite_listener
aseprite changes export listener ruby
Last synced: about 1 year ago
JSON representation
Listen changes on .ase/.aseprite files in specific folder and export .png and .json to a target folder
- Host: GitHub
- URL: https://github.com/stephannv/aseprite_listener
- Owner: stephannv
- License: mit
- Created: 2018-07-19T18:11:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-19T18:35:30.000Z (almost 8 years ago)
- Last Synced: 2025-02-05T22:36:30.985Z (over 1 year ago)
- Topics: aseprite, changes, export, listener, ruby
- Language: Ruby
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aseprite listener
Listen changes on .ase/.aseprite files in specific folder and export .png and .json to a target folder
## Getting started
### Installing
Download aseprite_listener or clone:
```
git clone git@github.com:stephanngamedev/aseprite_listener.git
```
Go to aseprite_listener's folder and install dependencies:
```
cd /path/to/aseprite_listener
bundle install
```
### Using
Starting listener:
```
ruby aseprite_listener.rb \
-a /path/to/aseprite executable \
-p /path/you/want/listen \
-t /target/folder/to/png \
-d /target/folder/to/json \
-s 4 \
-i 1
```
### Options
#### `-a` or `--aseprite` | String | Required
Aseprite executable path.
If you installed Aseprite on Ubuntu via Steam:
`~/.local/share/Steam/steamapps/common/Aseprite/aseprite`
If you installed Aseprite on MacOS via Steam:
```~/Library/Application\ Support/Steam/steamapps/common/Aseprite/Aseprite.app/Contents/MacOS/aseprite```
#### `-p` or `--path` | String | Required
Path to listen
#### `-t` or `--target` | String | Required
Sprite sheet (.png) folder target
#### `-d` or `--data` | String | Required
JSON data folder target
#### `s` or `--scale` | Integer | Default: 1
Scale factor
#### `i` or `--inner-padding` | Integer | Default: 0
Add padding inside each frame
#### `-o` or `--only` | String | Default: `\.ase$`
Listen to a specific type of file