thanks cfillion
This is great
I've added
Code:
reaper.Main_OnCommand(40042,0) -- go to start of project
reaper.Main_OnCommand(1016,0) -- stop
in setCurrentIndex function, to go to start and stop each time you switch. But it could be optional. Or maybe just the stop optional.