import bpy bpy.context.object.data.sensor_width = 4.54 bpy.context.object.data.sensor_height = 3.42 bpy.context.object.data.lens = 4.28 bpy.context.object.data.sensor_fit = 'HORIZONTAL'