When exporting my mesh, I want to copy all texture images used by the mesh to the destination folder, images packed in the .blend file included. I’m on 2.58a.
First of all, how do I tell oprations such as bpy.ops.image.save_as() which image they should work on? I understand that I have to set it via the context somehow but I don’t know how. The API docs list bpy.context.edit_image but Blender complains that it doesn’t know that.