Session & View
Read the live set, move the selection, and steer what Live shows on screen.
Tools on this page
get_session_info
get_session_info()
Get detailed information about the current Ableton session
get_view_selection
get_view_selection()
Read the current Live view selection: selected track (index/name/type), selected scene (index), whether a detail clip is shown, and the highlighted Session clip slot (track + scene coordinates).
set_selected_track
set_selected_track(track_index: int, track_type: str = 'regular')
Select a track in the Session/Arrangement view.
Parameters:
- track_index: index within its collection (0-based)
- track_type: “regular” (default), “return”, or “master” (master ignores index)
set_selected_scene
set_selected_scene(scene_index: int)
Select a scene in the Session view.
Parameters:
- scene_index: index of the scene (0-based)
set_detail_clip
set_detail_clip(track_index: int, clip_slot_index: int)
Show a Session clip in Live’s Detail (clip) view.
Parameters:
- track_index: index of the (regular) track
- clip_slot_index: index of the clip slot; the slot must contain a clip
set_highlighted_clip_slot
set_highlighted_clip_slot(track_index: int, scene_index: int)
Highlight a Session clip slot (defined by a regular track + scene).
Parameters:
- track_index: index of the (regular) track
- scene_index: index of the scene (the clip slot row)
focus_view
focus_view(view: str = 'Arranger')
Show and focus one of Live’s main views: “Arranger” (default) or “Session”.
Deterministic, unlike the View menu’s Toggle item - some commands are only available in one view (Edit > Select Loop, which render_audio relies on, is disabled in Session view).