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