View Single Post
Old 09-22-2018, 07:55 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

You can tell what track is with:
Code:
reaper.ShowConsoleMsg(string.format('track = %s\n', track))
Is totalTracks the number of selected tracks (not all tracks)? A common cause would be the index is out of range and GetSelectedTrack returns nil.
cfillion is offline   Reply With Quote