import bpy bpy.context.object.data.sensor_width = 6.16 bpy.context.object.data.sensor_height = 4.62 bpy.context.object.data.lens = 2.77 bpy.context.object.data.sensor_fit = 'AUTO'