Hi !
I'm having a bit of trouble with a quite simple process : i'd like to create and save an image file only with python. To create an image, it's fairly easy :
But when it comes to saving it, none of those works :Code:bpy.ops.image.new('my_image')
Code:bpy.ops.image.save_as(filepath='my_image')And of course none of those :Code:img = bpy.data.images['my_image'] img.save_render(filepath='my_image')
Code:bpy.ops.image.save()And I haven't found in the API doc another way to save an image. How can I do that ?Code:img = bpy.data.images['my_image'] img.save()
Thanks a lot !
(I'm using Blender 2.63)








Reply With Quote

Bookmarks