I have a scene, full of tiled models. Some of the models are duplicate linked. So when i bake the whole scene objects, those that are duplicate linked object, will have their baked images overwritten. So only the last duplicate linked object gets it’s baked image correct.
What i want to do is to loop through selected objects in the scene, bake the shadow map, and save it as {object.name}.jpg
I can loop through the selected objects, i can call bpy.ops.object.bake_image(), but i don’t know how to save the baked image. Calling bpy.ops.image.save_as() throws context errors.