-- Define a function to activate the Modify panel fn activateModifyPanel = ( -- Set the active rollout to the Modify panel setCommandPanelTaskMode #modify ) -- Define a callback function to trigger when an object is selected fn onSelectObject node = ( -- Call the function to activate the Modify panel activateModifyPanel() ) -- Register the callback with the selection event callbacks.removeScripts id:#onSelectionChanged callbacks.addScript #selectionSetChanged "onSelectObject selection[1]" id:#onSelectionChanged