import bpy bpy.context.object.data.sensor_width = 4.8 bpy.context.object.data.sensor_height = 3.6 bpy.context.object.data.lens = 3.70 bpy.context.object.data.sensor_fit = 'HORIZONTAL'