import bpy bpy.context.camera.sensor_width = 6.16 bpy.context.camera.sensor_height = 4.62 bpy.context.camera.sensor_fit = 'HORIZONTAL'