I have a small Blender 2.78c file with one (active) object, one material which is assigned to the object. It uses a UVMap with one images.
Blender crashes at the last line of the script below and the crash report is nothing but
I have reduced my script so that the error and crash still appear, but the code does not make sense anymore. Any hints on why this happens would be highly appreciated.
object = bpy.context.scene.objects.active uv = object.data.uv_textures.data for slot in object.material_slots: bpy.ops.object.mode_set(mode = 'EDIT') bpy.ops.object.material_slot_assign() bpy.ops.object.mode_set(mode = 'OBJECT') uv.image
Please find the file under: https://www.dropbox.com/s/poirg3qf70a5c7y/Testfile.blend?dl=0