techbelly / di-usb-library

Python library for reading figures/discs and setting light colours on Disney Infinity base.
19 stars 8 forks source link

IDS #4

Closed GhostFire90 closed 5 years ago

GhostFire90 commented 5 years ago

Got all of the code working, emailed you already but i fear no response so here i am, How did you get the IDS for the "Color.py" example? I would really like to know, thank you

techbelly commented 5 years ago

Hi there, it's a while ago now, but I think I just put some of the figures I had on the base and printed out the ids returned by the library. I don't think that they'll work across figures - so your spiderman might have a different id to mine. Hope that helps.

GhostFire90 commented 5 years ago

How would i get it to return the ids? GetAllTags requires me to have it do something but idk what i should do

GhostFire90 commented 5 years ago

NEVERMIND, for people who find this, here is how you do it def printTags(base_to_tag): for b in [1, 2, 3]: if b in base_to_tag: people = base_to_tag[b] print(people) def updatePrint(): base.getAllTags(printTags) base.onTagsChanged = updatePrint updatePrint()