cursorIndex for ClipLauncherSlotBank

Post Reply New Topic
RELATED
PRODUCTS

Post

Hi,
I'm a few weeks in with my Bitwig controller scripting.
I managed to get a trackbank with cursortrack, of which I observe the cursorIndex(), which is convenient for different tasks.
I also managed to get working ClipLauncherSlotBanks for each of my tracks, so that I can refer to slots roughly like

Code: Select all

 this.trackbank.getItemAt(this.currentTrack).slotBank.getItemAt(slot)
But there is one thing I cannot wrap my head around: is there a way to monitor the currently selected slot vertically the same way like with channels via cursorIndex(), eg. to get the scene within the scene bank of the currently selected slot?

An observer for my ClipLauncherSlotBank works, but always returns -1 (which means there is no cursor present, I guess?)

I'm currently not at home, that's why I cannot post the proper code I'm using. I can do this some time later, though.

Thanks in advance.

Post

Nevermind, finally got what I wanted by using addIsSelectedObserver-functions for each ClipLauncherSlotBank. Yey!

Post Reply

Return to “Controller Scripting”