Hey! This is a hyper-specific request/question so I totally understand if it's a little much.
Basically, I'd like to be able to pull image data from a slot/attachment somehow. A data URL would be preferable, but whatever's good (obv.)! To do this I've been researching miles of docs on the rendering process and so on, but I've been experiencing a lot of trouble figuring out what it actually parses from to get the image data. I understand it has to peel sections of the atlases away for each slot/attachment, but is there no in-between where I'd be able to snipe the passing data?
I'm using Pixi JS right now. I'd love to be able to grab the image data on-command at runtime, but even caching it as it's loaded in my own way and calling on that per-attachment path would be awesome. Do you guys have any advice as to how to accomplish this?
For context, I'm just trying to pull the head sprites (possibly hair/etc.) so I can put them in an html src tag in the player's profile.
Just as a brief update on my "method":
I can successfully get it to output a data URI with the correct size for the slot (15x15 for the head), but it's blank, presumably because the sprite has a size set that's accurate to the slot's size, but doesn't get any actual image data until later. FWIW, I'm doing this on a visible spine object w/ the window open.