Generating Sprite resources outside of the IDE

Pencil

Member
Hi!
I'm making a sprite exporter for adobe Animate that could automatically create a sprite resource given a specific animation.
It works by grabbing framedata using Animate's frame labelling feature and writing a JSON file in the format of .yy sprite resource files, along with
creating all the subfolders and image sequences necessary. It generates random GUID's along the way for the folders and such, including the resouce itself ("SpriteId" in the .yy)

The problem I've ran into is that randomly generated GUID's don't seem to work when importing the resource into the IDE using "Add Existing".
I don't know if GMS generates them using data from the images themselves to make sure they belong or if there's like a checksum validation or sth that I'm missing.

I haven't found many resources on manipulating resources outside of the IDE, so if someone could at least point me in the right direction I'd be super thankful!
 
Top