Skip to content

--list-layer-hierarchy documentation #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Options:
CLI that you can access with app.params
--<a href="#list-layers">list-layers</a> List layers of the next given sprite
or include layers in JSON data
--<a href="#list-layer-hierarchy">list-layer-hierarchy</a> List layers with groups of the next given sprite
or include layers hierarchy in JSON data
--<a href="#list-tags">list-tags</a> List tags of the next given sprite sprite
or include frame tags in JSON data
--<a href="#list-slices">list-slices</a> List slices of the next given sprite sprite
Expand Down Expand Up @@ -517,6 +519,34 @@ JSON output in the `meta` attribute. E.g.
}
}

## --list-layer-hierarchy

aseprite --list-layer-hierarchy file.ase

Prints the list of layers with groups in the given file from bottom to top. E.g.

![Layers](cli/list-layer-hierarchy.png)

C:\....> aseprite -b --list-layer-hierarchy file.ase
Layer 2
Group 1/
Layer 1.1

When used with [--data](#data), the layers will be available in the
JSON output in the `meta` attribute. Same as [--list-layers](#list-layers) E.g.

{ "frames": [
...
],
"meta": {
...,
"layers": [
{ "name": "Layer 2" },
{ "name": "Layer 1.1", "group": "Group 1"}
]
}
}

## --list-tags

aseprite --list-tags file.ase
Expand Down
Binary file added cli/list-layer-hierarchy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.