Cabbage Logo
Back to Cabbage Site

Sliders init and min values

Hello,

Considering the following sliders :

vslider bounds(0, 18, 10, 65),range(0, 127, 0, 1, 1), colour(“red”), textbox(0),channel(“S1_1”)
vslider bounds(10, 18, 10, 60),range(0, 127, 0, 1, 1), colour(“lightblue”), textbox(0),channel(“S1_2”)

If you move the sliders , and get the value with “chnget”, none of them comes back to “0” (whenever the popup label says 0), there remains a “residual” value which seems to be related to the actual size of the widget.
Is there a work around to fix it ?
Thank you for your help.

Hi, I couldn’t replicate the result. Did you print the value of the sliders to check if a residual value exists? When I tried printing, it’s zero.

Like @Thrifleganger I’m not experiencing the same. The following code prints all values and returns to 0?

printk2 chnget:k("S1_1")
printk2 chnget:k("S1_2")

How are you noticing the “residual” value?

Somehow I managed : I made a test on the value to force it to 0. Maybe this is related to my screen and not to cabbage itself.
Thank you a lot for your help.