import bpy bpy.context.camera.sensor_width = 8.5 bpy.context.camera.sensor_height = 4.78 bpy.context.camera.sensor_fit = 'HORIZONTAL'