Thanks gofer, those command codes do seem to open the editor, but it's not opening the selected track I set with the API. If I manually select a track it will open that track, but not if I set the selected with code.
Here is what I'm doing:
m_pREAPER->SetTrackSelected(m_pREAPER->CSurf_TrackFromID(nIndex, true), true);
m_pREAPER->Main_OnCommand(40194, 0);
I can see that the track index being sent into CSurf_TrackFromID() is getting selected, but Main_OnCommand(40194, 0) is opening the last manually selected track.
|