Button Script to "Select Next Switch"
Posted: 02 Oct 2013 13:57
Hi,
I am trying to script a button to select the next switch of a Switches object.
Under the Switches object, I am using this script:
ON EXPRESSION: Button.x is greater than 0
firstof(x=Switches.x +1);
I realize my math is off because upon button execution it selects ALL of the switches. Do I need to use a fraction rather than a 1? Not exactly sure about the theory behind the math for this instance, any help or clarification with this would be much appreciated!
Cheers
I am trying to script a button to select the next switch of a Switches object.
Under the Switches object, I am using this script:
ON EXPRESSION: Button.x is greater than 0
firstof(x=Switches.x +1);
I realize my math is off because upon button execution it selects ALL of the switches. Do I need to use a fraction rather than a 1? Not exactly sure about the theory behind the math for this instance, any help or clarification with this would be much appreciated!
Cheers