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