Is there any way to get all selected clips in JS?
In a JS script, you can get all selected tracks by iterating over tracks and checking is_part_of_selection
, which works if someone has shift+clicked multiple tracks directly. But I don't see any similar property for clips.
In session view you can shift+click multiple clips, and in arrangement view you can click and drag a timeline selection across multiple tracks (thereby selecting multiple clips), but I can't find any way to get access this info, and actually these actions only set is_part_of_selection
on the first track selected this way. Even being able to get the timeline selection range would be useful, but I don't think this is possible either.
Is there maybe a way to use observers to track multiple selected clips? Any other ideas?