Skip to content
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

[Feature Request] Add an option --ignore-layer <name> to the CLI #1264

Closed
talecrafter opened this issue Sep 22, 2016 · 5 comments
Closed

[Feature Request] Add an option --ignore-layer <name> to the CLI #1264

talecrafter opened this issue Sep 22, 2016 · 5 comments
Assignees
Labels
feature Feature request, or something should be improved
Milestone

Comments

@talecrafter
Copy link

Would be great for my personal workflow to have an option of ignoring a specific layer when exporting to PNG+JSON.

My use case is this:
I use one Layer with meta informations where neon colored pixels mark offsets. (The image is analyzed later in the pipeline.) I need this layer to be visible while working in Aseprite but the automated processing needs that layer separated from the other layers. My plan would be to call the CLI once with --import-layer to just get the meta layer, and then once with --ignore-layer to get the rest of the image.

I can think of workarounds (including the nuisance of toggling it manually before exporting), but if it's not much work it would be great to have it in there. Maybe it's also useful for other people building their automated workflows.

@dacap
Copy link
Member

dacap commented Sep 22, 2016

Hi @talecrafter, I think it's a good idea. I'll try to include this in the next beta.

At the moment, in v1.2-beta2, you might try to use two groups, one for mark/guides, and other group for the sprite itself, then you can ignore marks using --layer groupname (or --layer groupname/* to make visible all children in that group and hide all other groups).

@dacap dacap added the feature Feature request, or something should be improved label Sep 22, 2016
@dacap dacap added this to the v1.2 milestone Sep 22, 2016
@talecrafter
Copy link
Author

Excellent. Thank you.

dacap added a commit that referenced this issue Sep 23, 2016
@dacap dacap self-assigned this Sep 23, 2016
@dacap
Copy link
Member

dacap commented Sep 23, 2016

This is already available in the new Aseprite v1.2-beta3

@dacap dacap closed this as completed Sep 23, 2016
@talecrafter
Copy link
Author

When using this command line option, hidden layers get exported too. They get not exported when not using this option. I assume that's a bug and not intended behaviour.

@dacap
Copy link
Member

dacap commented Sep 24, 2016

It is a bug :( I've created some unit tests for this but I need to test it more with files with a mix of hidden/visible layers. Reopening the issue.

Anyway, I'm thinking that I might give more priority to batch export using projects #126 or post-save hooks #138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request, or something should be improved
Projects
None yet
Development

No branches or pull requests

2 participants