Git Product home page Git Product logo

Comments (5)

erryox avatar erryox commented on June 7, 2024 1

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.

dacap avatar dacap commented on June 7, 2024

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.

erryox avatar erryox commented on June 7, 2024

Hi,

This is not.
изображение

from api.

dacap avatar dacap commented on June 7, 2024

🤔 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:

Screen Shot 2019-12-13 at 09 17 48

Screen Shot 2019-12-13 at 09 17 52

from api.

dacap avatar dacap commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.