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

LibreSprite scripting guide #360

Open
arionukshini opened this issue May 20, 2022 · 2 comments
Open

LibreSprite scripting guide #360

arionukshini opened this issue May 20, 2022 · 2 comments

Comments

@arionukshini
Copy link

So aseprite and lua scripts dont work but js do but i have no idea on how to make a libresprite script and if someone could tell me or show me a guide it would be great

@rjaduthie
Copy link

Hi, I've been trying to get a script to work but hadn't realised that I'd have to do it in JS rather than Lua.

Can the author of the OP share the JS that they got working? I will have a look into this myself, but any clues would be appreciated!

@felipemanga
Copy link
Collaborator

Both Lua and JS languages are supported, but the API is not the same as Aseprite's, so don't expect to be able to use scripts from one application on the other. The API is undocumented because the feature is experimental and very limited at the moment. Mostly, the API allows you to modify the current layer, so you can make your own filters or generate images prodcedurally. You can see examples to get you started for both Lua and JS in the data/scripts folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants