import bpy bpy.context.camera.sensor_width = 6.97 bpy.context.camera.sensor_height = 3.92 bpy.context.camera.sensor_fit = 'HORIZONTAL'