Hi, I want to give my importer the ability to load models from a compressed archive, so I extract the files in memory using mmap (model file, textures, materials, etc.).
The only difficult I came across is how to load the textures, as bpy.data.images.load() expects a path to a file in the disk.
I’d like to just load the images in blender from the memory and pack them as PNGs to the .blend file.
Is there other way to load images? If not, could you please point me in the right direction for checking blender’s source, and does it look like a hard to do modification?