Skip to content

Commit 70db720

Browse files
requizmdacap
authored andcommitted
Added --list-layer-hierarchy for cli
1 parent 49b6ca3 commit 70db720

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

cli.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ Options:
8585
CLI that you can access with app.params
8686
--<a href="#list-layers">list-layers</a> List layers of the next given sprite
8787
or include layers in JSON data
88+
--<a href="#list-layer-hierarchy">list-layer-hierarchy</a> List layers with groups of the next given sprite
89+
or include layers hierarchy in JSON data
8890
--<a href="#list-tags">list-tags</a> List tags of the next given sprite sprite
8991
or include frame tags in JSON data
9092
--<a href="#list-slices">list-slices</a> List slices of the next given sprite sprite
@@ -522,6 +524,34 @@ JSON output in the `meta` attribute. E.g.
522524
}
523525
}
524526

527+
## --list-layer-hierarchy
528+
529+
aseprite --list-layer-hierarchy file.ase
530+
531+
Prints the list of layers with groups in the given file from bottom to top. E.g.
532+
533+
![Layers](cli/list-layer-hierarchy.png)
534+
535+
C:\....> aseprite -b --list-layer-hierarchy file.ase
536+
Layer 2
537+
Group 1/
538+
Layer 1.1
539+
540+
When used with [--data](#data), the layers will be available in the
541+
JSON output in the `meta` attribute. Same as [--list-layers](#list-layers) E.g.
542+
543+
{ "frames": [
544+
...
545+
],
546+
"meta": {
547+
...,
548+
"layers": [
549+
{ "name": "Layer 2" },
550+
{ "name": "Layer 1.1", "group": "Group 1"}
551+
]
552+
}
553+
}
554+
525555
## --list-tags
526556

527557
aseprite --list-tags file.ase

cli/list-layer-hierarchy.png

2.46 KB
Loading

0 commit comments

Comments
 (0)