More than 8 knobs on a remote control page?

User avatar
KVRAF
5771 posts since 9 Dec, 2008 from Berlin

Post Sat Apr 11, 2020 8:56 am

Really? What did I win? ;-)

Great you got it working. The API is a total mess and while I no longer do much scripting, I just happened to read your topic by accident and knew the answer was yes...

Best of luck!

Tom
"Out beyond the ideas of wrongdoing and rightdoing, there is a field. I’ll meet you there." - Rumi
ScreenDream|Thomas Helzle 8) Twitter

KVRist
74 posts since 12 Dec, 2007 from Fort Bragg, CA

Post Sun Apr 12, 2020 8:13 am

<3 it appears many of us couldn't figure out how to make it happen so I think you win smiles on peoples faces. At least a big one on mine. :) cheers Thomas!
---------------------------------------------------------------
http://kirkwoodwest.com/

User avatar
KVRist
151 posts since 12 Apr, 2020

Post Mon Jul 27, 2020 8:47 am

I swear i had this working a couple months ago on my bcr2000 script. but for now I can't seem to use selectedPageIndex().set() on the cursorRemoteControlsPage

doesn't seem to be doing anything here anymore. I'm wondering if it has to do with some changes in the API...

cursorRemoteControlsPage.pageNames() is also returning a strange value: Ljava.lang.String;@68e4b3e2

and if i check the length of it...for my test... cursorRemoteControlsPage.pageNames.pageNames().get().length it is 14. So its the proper length.

I'm a little hesitant to show the actual code because I don't want to waste anyones time with that. but maybe there is something i'm missing.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

User avatar
KVRAF
5771 posts since 9 Dec, 2008 from Berlin

Post Mon Jul 27, 2020 8:54 am

cursorRemoteControlsPage.pageNames() returns an array/object/collection thingy with the names IIRC. That stuff shows silly names often.
Do you look for the individual name of a page?

The selectedPageIndex worked for me the last time I tried - not at home ATM so can't check, sorry.

Cheers,

Tom
"Out beyond the ideas of wrongdoing and rightdoing, there is a field. I’ll meet you there." - Rumi
ScreenDream|Thomas Helzle 8) Twitter

KVRer
5 posts since 23 Jun, 2020

Post Mon Jul 27, 2020 11:48 am

I only get this reliably to work by matching the page tags, the name of the page seem not to be relevant. Each page needs to have just one unique tag for example the first page "1", the second page "2", etc... then in software you can access all pages like this:

Code: Select all

CursorRemoteControlsPage page1 = device.createCursorRemoteControlsPage("_", 8, "1");
CursorRemoteControlsPage page2 = device.createCursorRemoteControlsPage("_", 8, "2");
...

User avatar
KVRist
151 posts since 12 Apr, 2020

Post Mon Jul 27, 2020 12:29 pm

nice solution for that Heins!

Somehow I made a stripped down version to get it to work... and then building back from there.

key part was to have this:

Code: Select all

remoteControlsBank.pageNames().addValueObserver(pageNamesChanged));
and then reset the index:

Code: Select all

RemoteControlHandler.prototype.pageNamesChanged = function(){
   page_names = this.remoteControlsBank.pageNames().get();
   index = 0;
   if (this.page_index < page_names.length) index = this.page_index;
   this.remoteControlsBank.selectedPageIndex().set(this.page_index);
}
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

KVRer
10 posts since 28 Nov, 2019

Post Wed Sep 02, 2020 1:49 pm

[edited]
Nevermind, I will try again... and might come back later for help :wink:
Last edited by solyon on Fri Sep 04, 2020 1:54 pm, edited 1 time in total.

KVRer
10 posts since 28 Nov, 2019

Post Fri Sep 04, 2020 1:49 pm

heins wrote:
Mon Jul 27, 2020 11:48 am
I only get this reliably to work by matching the page tags, the name of the page seem not to be relevant. Each page needs to have just one unique tag for example the first page "1", the second page "2", etc... then in software you can access all pages like this:

Code: Select all

CursorRemoteControlsPage page1 = device.createCursorRemoteControlsPage("_", 8, "1");
CursorRemoteControlsPage page2 = device.createCursorRemoteControlsPage("_", 8, "2");
...
Damn! It worked!! I did not believe it anymore :pray: :hug:
Now I will also try to implement the Kirkwood West solution :wink:

Return to “Controller Scripting”