import bpy bpy.context.object.data.sensor_width = 36 bpy.context.object.data.sensor_height = 24 bpy.context.object.data.sensor_fit = 'HORIZONTAL'