script: Pass selected mode name in pad data