Aseprite-Script-Examples icon indicating copy to clipboard operation
Aseprite-Script-Examples copied to clipboard

Fix an outdated API command usage and a post-script run crash

Open arcticnoah opened this issue 4 years ago • 0 comments

Hiya, just checked all the example scripts to see if they work with the v1.3 beta, and found two scripts that didn't work correctly anymore! (both also didn't work with v1.2.27)

The Tiles to Layers.lua script would only copy the first tile region to each of the generated layer and also caused a crash whenever any of the created layers were selected in the timeline or drawn to via the pencil (yet hiding/showing these layers didn't cause a crash). The issue stopped as soon as I removed the call for app.command.Paste().

And the Touch Toolbar.lua script just simply had an outdated API call.

Hope this is useful for maintenance and thanks for the awesome software!

Aseprite and System version

  • Aseprite version: v1.3-beta2-x64, Steam (beta branch). Also tested with v1.2.27, Humble Bundle (portable)
  • System: Windows 10 x64

arcticnoah avatar Jun 07 '21 16:06 arcticnoah