pkgaspi / asepritescripts Goto Github PK
View Code? Open in Web Editor NEWMy collection of Aseprite Scripts. Useful to make repetitive export patterns quicker.
License: MIT License
My collection of Aseprite Scripts. Useful to make repetitive export patterns quicker.
License: MIT License
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!
If a group is not visible during export_layers, the associated exported layers will be empty files.
When exporting as .png, it can be useful to export multiple frames as a sprite sheet instead of as many images.
The current folder structure of the repository means one cannot simply clone it in Aseprite\scripts
and pull future updates easily. The root of the repository should be the scripts/gaspi
folder.
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.
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:
What I'm looking for is something akin to the following:
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.
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 โ ๐บ
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 :)
I want to export a sprite sheet instead of one frame with the combination script. Any ideas?
it would be very useful, to be able to trim the cells when exporting each layer separately
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.