pack_atlas
Packs several sprites and every frame into one texture, then writes a JSON map in Aseprite's sprite-sheet hash layout so identical frames share pixels.
Instructions
Pack several sprites into one texture, with every frame of each, plus a JSON
map in the hash layout of Aseprite's sprite-sheet export. Frames that repeat
exactly share pixels. sprites are files on disk or, live, the file names of
open sprites; unsaved sprites can't be named. The JSON goes beside the PNG unless
out_json says otherwise, and frames are keyed <sprite> <index>.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sprites": "<sprites>",
"out_png": "<out_png>"
},
"name": "pack_atlas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out_png | Yes | ||
| padding | No | ||
| sprites | Yes | ||
| out_json | No |