import bpy bpy.context.camera.sensor_width = 4.5 bpy.context.camera.sensor_height = 3.37 bpy.context.camera.lens = 3.91 bpy.context.camera.sensor_fit = 'HORIZONTAL'