I have been searching but do not know how to activate “Do it”.
In response to your question:
The Min is 0 (Zero) and the Max is 100.
I am trying to get the Slider to advance in 5.556 increments so that 18 advances gets it from 0 to 100.
To provide context, the slider is being used as an indicator of the % of power being given to a motor. When a speed button is pressed it increases the speed one increment of 1/18th.
Connect to Companion, right mouse click: "Do it"
see here:
In this case, SliderThumbPosition returns only integer values.
If the min value = 0 and max = 10, it returns 1 decimal place.
Min = 0 and max = 1 it returns 2 decimal places, and so on.
To make it short: The slider distributes 100 to the respective interval [0, 100], [0, 10], [0, 1] and seems to be therefore rather unsuitable for your purposes.
Thanks for the reply. I am not looking to pick the number. The context is the slider is being used as an indicator of the of power (speed) being given to a motor for a model train. When a arrow button is pressed it increases the speed one increment of 1/18th.
The slider (Green and Gray) would increase or decrease as the left and right arrows are pressed.
You click the right arrow (accelerate) and 1/18 is added to the current value of the slider.
The trouble is it behaves like this.
Slider set = 0.
Slider = 0, click the arrow, add 5.5556 to the slider. Slider = 5.55556. (0 + 5.5556)
Click the arrow again, add 5.5556 to the slider, Slider now = 10.5556 when it should be 11.1112.
I tried working with 1 to 10000.
It adds 55.556 and 55.556 and gives 105.556
I did some “Do Its” and saw that for some reason the system changes the value to 50 before it adds the next 55.556. That explains the numbers but not why it does that. Same thing with 1 to 100. It changes 5.5556 to 5.0 before the addition.