Is it possible to script an automatic shadow layer in Aseprite?

Hey everyone,

I have been messing around with Aseprite a lot lately & I am starting to dip my toes into scripting. I was thinking—would it be possible to create a script that automatically generates a shadow layer? such as, duplicate the current layer or selection, offset it slightly; darken it & reduce the opacity? Maybe even add a little blur if that’s doable?

I know this is probably a bit more advanced but if anyone has any tips or a starting point, I’d seriously appreciate it. I took a course and it got me interested in scripting in general so now I want to know about how I can use those skills in creative tools such as Aseprite too.

Thank you.:slight_smile:

i think this is doable.

-get the image
-flip vertically
-adjust hue/saturation
-paste in new layer

for the blur, theres a built in tool that can also be use.

ill research about it. this is a nice idea

update: initial development
aseprite_8AFJgdRRoA

Sharing for anyone who’s interested. You can download it on itch.

Hello. Good script idea and it is 100% doable.