Closed bizkitj closed 7 years ago
which version of controlP5 are you using? this works for me with version 2.2.6 (you can find it under releases). Edit: I thought you were using the Slider example unmodified, the modified version above (line 80) does indeed throw an error, workaround see below.
Hi Sojamo
ControlP5 2.2.6 Processing 3.2.3 Win10 X64
Ah ok, you added line 80 to the example? getController()
returns the slider as an instance of Controller (which Slider extends). Since the Controller class does not implement setRange you need to call cp5.get(Slider.class, "sliderTicks2").setRange(10, 50);
which returns the sliderTicks2 as an instance of Slider.
thank you Sojamo
line 80 is giving errors, is this supposed to be correct?