problem with hidden group tracks using M4L.api.GetSelectedTrackIndex

newtfish's icon

Hi,

If I hide tracks (ie not expand them in a group) and use M4L.api.GetSelectedTrackIndex to get the index of the currently selected track (by id), it gives me the wrong number/index.

Is there any way to get M4L.api.GetSelectedTrackIndex to cater for all tracks? Even hidden grouped ones?

Or is there another way to get the currently selected track number, to use in live.path?

Cheers

N

newtfish's icon

ok, i got it, it was "get visible_tracks" instead of just tracks.

Der!