import bpy bpy.context.object.data.sensor_x = 30.0 bpy.context.object.data.sensor_y = 15.0