import bpy bpy.context.object.data.sensor_width = 23.760 bpy.context.object.data.sensor_height = 13.365 bpy.context.object.data.sensor_fit = 'HORIZONTAL'