We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Update/Refresh controlP5 slider value displayed
Page Index Toggle Pages: 1
Update/Refresh controlP5 slider value displayed (Read 1113 times)
Update/Refresh controlP5 slider value displayed
May 18th, 2010, 2:29pm
 
Is there a way to update the value shown on a slider based on other changes in the sketch?

For example, I have a button that randomizes a bunch of variables with parameters that are controlled by slider objects and I want the sliders to be updated with the new randomized values.
Re: Update/Refresh controlP5 slider value displayed
Reply #1 - May 18th, 2010, 5:17pm
 
I figured it out. Had to look further into the examples...

Code:
controlP5.controller("sliderValue").setValue(value); 



where value is the desired value to be set for the slider.
Page Index Toggle Pages: 1