Buttons direct to parameter page - Help

Post Reply New Topic
RELATED
PRODUCTS

Post

Hey guys
Trying to get the first two buttons (of sixteen in total) to relate to the first two parameter pages on a device.

Not sure if im using the right call setParameterPage()
or if im missing something else

Any help much appreciated

Code: Select all

var parameters = {
	offset: 25
  ,
	control: function(data1, data2)
 	{
 		if(data1 >= this.offset && data1 < this.offset + 8 ){
			cursorDevice.getParameter(data1 - this.offset).set(data2,128);
 		}
 	},

 	pageScroll: function(data1, data2)
 	{
 		if(data1 == 33 && data2 > 0){
 			cursorDevice.setParameterPage(2);
 		}else if(data1 == 34 && data2 > 0){
 			cursorDevice.setParameterPage(3);
 		}
 	},

 	update: function()
 	{
 		for(var p = 0; p <8; p ++)
 		{
 			cursorDevice.getParameter(p).setIndication(true)
 		}
 	}

}

Post

The first two parameter pages have index 0 and 1 while you switch to 2 and 3.

Post

BufoBufo wrote:The first two parameter pages have index 0 and 1 while you switch to 2 and 3.
True.
I have control over parameter page 1, so i did skip to 2 & 3 just to make sure I was getting off that first page.

Post

Found it - cheers :D

Post Reply

Return to “Controller Scripting”