I'm writing a javascript controller script (in v2.3.5, api version 6) to select the previous and next tracks. I have done this via creating a cursorTrack:
Code: Select all (#)
cursorTrack = host.createCursorTrack("followSelection", "followSelection", 2, 0, true)
and assigning select previous and next functions to my controllers buttons:
Code: Select all (#)
cursorTrack.selectPrevious()
cursorTrack.selectNext()
However, when you do the same thing using the arrow keys, the UI updates and scrolls along to keep the selected track in view.
Is there something I'm missing to tell the UI to scroll along with my selection? I've passed true to createCursorTrack for shouldFollowSelection so I would assume that this would be part of that behaviour.
It does this in modes (arrange, mix, edit).
Thanks,
Dyson