Hi gang,
I always write something similar to the code below... but am thinking there must be some command I'm missing. Like when you double-click on a track panel... all the items for that track are selected.
Is there a command for this in the API that I'm missing?
Code:
----- select all item on 1st selected track ------
track = reaper.GetSelectedTrack( 0, 0 )
num_item_trk = reaper.CountTrackMediaItems( track )
trk_item = {}
for i=0, num_item_trk-1 do
trk_item [i] = reaper.GetTrackMediaItem( track, i )
reaper.SetMediaItemSelected( trk_item [i], 1 )
end