import bpy bpy.context.camera.sensor_width = 21.12 bpy.context.camera.sensor_height = 11.88 bpy.context.camera.sensor_fit = 'HORIZONTAL'