Comments (5)
Nevermind xD
If there was a bug before, now it has gone. In my screenshot above, you can see sprite.activeTa instead of sprite.activeTag. Sorry :)
from api.
Hi @erryox, sorry for the delay with my answer. Actually each FrameTag object is just a "pseudo-object" that is referencing the same real Tag through an internal ID (scripting objects in Lua are wrappers of the internal objects, an almost everything is referenced through IDs instead of storing pointers).
Not sure if this could be (or should be) fixed in a proper easy and proper way. You can compare two tags (e.g. sprite.tags[1] == app.activeTags
should be true) because the ==
operator (__eq
Lua metatable) for tags is overloaded to compare their internal IDs.
from api.
Hi,
from api.
🤔 It's strange, I'm just testing this:
local spr = app.activeSprite
print(spr.tags[1] == app.activeTag)
And it says true when I'm in the first tag and false in the second one:
from api.
Oh that was the problem 😅 Anyway it's strange that Aseprite didn't say something about the undefined property app.activeTa
, I'll take note about this problem to improve the error reporting in this case for the next version.
from api.
Related Issues (20)
- Is there a way to use HTTP request in scripting? HOT 2
- Document canvas's autoScaling flag and GrapshicContext.theme HOT 2
- drawImage() does not draw properly transparent colors HOT 3
- Document Dialog's :tab() and :endtabs() usage
- create spritesheet from the frames
- Api documentation for tilemaps and tilesets
- Duplicating frames in a layer? HOT 1
- [Feature] app.fs.lastSavedPath
- [Feature] Dialog:image
- [Feature] Dialog:show { wait = false, alwaysOnTop = true }
- Clarify When Sprites Have Multiple Palettes
- Is there an API to fetch the lasso selected areas info.? HOT 1
- How to cache current PixelFormat values? HOT 1
- New canvas widget (initial version) HOT 1
- Add Lua API to access new UserData properties HOT 1
- New UIImage kind of object to cache offscreen images/textures
- A way to access widgets by ID / mainly canvas
- Document the creation/deletion of tilesets
- `app.activeImage.width` incorrect after canvas resize HOT 2
- Repeat in KeyEvent.repeat is a reserved word HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.