import bpy bpy.context.camera.sensor_width = 22.3 bpy.context.camera.sensor_height = 14.9 bpy.context.camera.sensor_fit = 'HORIZONTAL'