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