import bpy bpy.context.camera.sensor_width = 24.4 bpy.context.camera.sensor_height = 13.5 bpy.context.camera.sensor_fit = 'HORIZONTAL'