Giter Site home page Giter Site logo

asepritescripts's People

Contributors

boruok avatar firebelley avatar pkgaspi avatar stonelabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asepritescripts's Issues

Ignore hidden layers when export

I would like to manage which layers are exported by 'export_layers' by toggling the visibility of a layer, as I hide some backup sprites.

However, even the hidden layers are being exported.

Perhaps an option similar to "save sprite" could be implemented?

Thank you for your excellent work; much love!

Layers with equal names

Hi,

first of all, thank you for the scripts!

There is one issue that I want to raise attention to. As far as I understand, when exporting layers and two layers have the same name, only one is exported or the second one overwrites the first one. It would not be a big issue, but people might not realize it when exporting and then something is missing. So maybe if the file exists already it could add filename (2) and so on or something similar.

Export Layers - Resize / Shrink Canvas to Best Fit Exported Layer Sprite

I'm looking to use the export layers script if I can resize / shrink the canvas around each exported layer sprite to "best fit" the resultant sprite. I've played around with the script and somehow was successful in one attempt to do this, but haven't been able to recreate this result again.

For a concrete example of what I'm looking for, currently exported layer sprites use the default canvas size of the Aseprite project you're exporting from, i.e. here I'm using the Export Layers script on a 128x128px canvas and get the following output:

image

What I'm looking for is something akin to the following:

image

Notice the sizes of these png's fit the resultant layer sprites.

I thought I was able to achieve this by manipulating the script using this additional line:

app.command.CanvasSize{ ui=false, bounds=app.activeSprite.bounds } -- <---
sprite:saveCopyAs(filename)

However, I may have been leveraging an additional feature of the script unknowingly.

Frame number filename export option

With the default option, the frame number is appended to the end of a file, e.g. Layer1.png Layer2.png

For my project I need to be able to customise the position of this frame number so {framenumber} option when specifying Export layers -> filename.

Any chance this could be added or point us in the direction to add the functionality? Looking at export_layers.lua and struggling to see where frame number is being appended. Happy to throw some contribution your way for the help โ˜• ๐Ÿบ

Crop Feature

I ran into the problem that i need to crop all the layers before export.
Currently each layer (also hidden ones) are getting exportet in the resolution of the original sprite.

In my case i want the script to do a crop before exporting each layer, so there are no empty spaces around the png.

Thank you for your work and i m looking forward to see that feature :)

Sprite Sheet

I want to export a sprite sheet instead of one frame with the combination script. Any ideas?

bad argument error in Unsaved projects

When trying to use some of the options

export_combinations
export_layers
export_slices

in projects that have not been saved for the first time throws the following error:
Screenshot_1
Of course it is not something that prevents the script from working, you can save the project and that's it, I just wanted to raise awareness of the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.