import bpy bpy.context.object.data.sensor_width = 11.1 bpy.context.object.data.sensor_height = 6.24 bpy.context.object.data.sensor_fit = 'HORIZONTAL'