import bpy bpy.context.object.data.sensor_width = 4.68 bpy.context.object.data.sensor_height = 2.633 bpy.context.object.data.sensor_fit = 'HORIZONTAL'