[LUA script] Playback specific tags sequence in the preview window

I started to have a look at LUA scripting and was wondering if it was possible to playback a sequence of specific tags.

E.G. I have a idle, a punch and throw animation, and I would like to test the transitions between the different animations. I could enter the tags in the order I want the preview to play them and playback in loop or not.

Is it even possible to access the preview window with the LUA API ?

Thanks !

I think that a possible way would be to change the active frame (app.activeFrame = firstFrameInTheTag) and then calling the app.command.PlayPreviewAnimation(). But the scripting would work or not depending on the current configuration of Aseprite (e.g. play tags instead of all frames).

Thanks David,

I’ll look into that.