import bpy bpy.context.object.data.sensor_width = 4.5 bpy.context.object.data.sensor_height = 3.37 bpy.context.object.data.lens = 3.91 bpy.context.object.data.sensor_fit = 'HORIZONTAL'