aseprite / api

Scripting API for Aseprite
https://www.aseprite.org/api/
MIT License
239 stars 48 forks source link

Add Lua API to access new UserData properties #88

Closed Gasparoken closed 1 year ago

Gasparoken commented 1 year ago

EDIT Just in case the following design was proposed by @dacap but there is no final API design, we have to talk about the best options.

Related to https://github.com/aseprite/aseprite/issues/3625

Add Lua API to access doc::UserData properties, e.g.

myLayer.extraData["extension id"].extensionCustomProperty or
myLayer.properties["extension id"].extensionCustomProperty
myLayer.extensionData["extension id"].extensionCustomProperty or

and probably

myLayer.userData.myProperty or
myLayer.userProperties.myProperty

as shortcut for

myLayer.extraData[""].myProperty
...
dacap commented 1 year ago

This depends on aseprite/aseprite#3631 and the API design must be discussed first.