import bpy bpy.context.camera.sensor_width = 24.33 bpy.context.camera.sensor_height = 12.83 bpy.context.camera.sensor_fit = 'HORIZONTAL'