import bpy bpy.context.object.data.sensor_width = 32 bpy.context.object.data.sensor_height = 18 bpy.context.object.data.sensor_fit = 'AUTO'