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

Exporting to folders and creating them if not existing. #1492

Closed
Dairnon opened this Issue May 29, 2017 · 7 comments

Comments

Projects
None yet
3 participants
@Dairnon
Copy link

Dairnon commented May 29, 2017

Describe your bug report or feature request here

I'm using the Cli to export sprites from aseprite trying to export sprites into specific folders. I've found if the folder doesn't exist, the system would crash telling me it doesn't exist. I'd have to manually create the folder for it to work. I'd like for if my destined path doesn't exist, it could make the folder for me.
I've also a lot of the commands dont work like they did in older versions...

Also stuff like --filename-format doesn't work the normal way anymore it seems... your forced to do it the --save-as way. If this is intentional it doesn't appear to be in the docs (still says you can use both)

Also ignore-layer isn't in the docs either

  • Aseprite version: v1.1.13-dev. I plan to buy the steam release soon rather then using the builds.
  • System: Windows 7 Ultimate x64
@dacap

This comment has been minimized.

Copy link
Member

dacap commented May 29, 2017

Hi @Dairnon, do you have some examples of command lines that doesn't work as in older versions? (I try to keep backward compatibility with some automated tests, but it's probable that something is missing)

I'll add ignore-layer in docs too.

@dacap dacap added the bug label May 29, 2017

@dacap dacap added this to the v1.2 milestone May 29, 2017

@dacap

This comment has been minimized.

Copy link
Member

dacap commented May 29, 2017

I forgot about the feature/bug itself, I'm not sure if folders should be automatically created (maybe a special --mkdirs parameter or something like that).

@Dairnon

This comment has been minimized.

Copy link
Author

Dairnon commented May 29, 2017

So I've had to resort to using the in editor save-as and then writing
custom commands within the name section

ss 2017-05-29 at 03 58 47
issue with this that it works, however commands like {group} or {layer}
doesn't work...

As for the Cli... it seems like after the newer versions, anything beyond
like 1.1.9 broke many of the commands like using
--layer
--filename-format
--split-layers

ss 2017-05-29 at 04 03 30

(so in the image above, only the bottom command works, the top one was
working in 1.1.9, but now not in 1.2-beta9)

I could only ever get anything in the --save-as commands to work... and
then that wouldn't let me get things like (exclude layer) or (group) (which I'm not even sure is working yet)

I also noticed that it seems like a lot of the documentation on how to do
this isn't updated for the cli. ​

I basically wanna export ALL my groups I create, name the sprite the
{group}{tag}{tagframe0}.png

Id preferably like the ability to automatically export them out into
folders automatically creating using the whatever variable I'd want.
Ex: {path}{group}{group}{tag}{tagframe0}.png

So it export into path + a folder named after the group, with the settings
here

So if the sprite was named "Ayumi" and the pose was move2(down)

It be in folder ayumi, named ayumi_move2_0.png

As it stands I can't do much of this... and have to manually do this (since
again a lot of these commands wont work anymore for some reason and I can't
automatically generate folders). I must stress that the
--layer
--filename-format
--split-layers

Also a --mkdirs could be neat

@Dairnon

This comment has been minimized.

Copy link
Author

Dairnon commented May 30, 2017

What would also be nice is if you export a group, you could ignore layers within that group...

I saw you posted some things about implementing that... or working that out... however I've yet to see any documentation or examples of how to get it work if it is in.

I recently bought the program and steam and love it so far, however I'd like to make exporting a bit easier. For my workflow. I export my sprites separately based on a specific naming scheme, then import into texturepacker, and pack them with a custom exporter+format.

@Dairnon

This comment has been minimized.

Copy link
Author

Dairnon commented Aug 31, 2017

I just wanted to check in and see if this was fixed? Being able to write out quick auto batch commands is very important for development.

@dacap dacap modified the milestones: v1.2, v1.2-bugs Sep 12, 2017

@Ianuario

This comment has been minimized.

Copy link

Ianuario commented Oct 13, 2017

Having groups in the command lines work just like layers/tags/slices do, for separation purposes, would be neato.

@dacap dacap added the enhancement label Jun 28, 2018

@dacap

This comment has been minimized.

Copy link
Member

dacap commented Jun 28, 2018

This was requested a couple of extra times:

I'll try to add this feature/fix in v1.2.9.

@dacap dacap self-assigned this Jun 28, 2018

@dacap dacap modified the milestones: v1.x-bugs, v1.2 Jun 28, 2018

@dacap dacap closed this in 598f69d Jun 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.