control command is useless!


#1

Ok, I need to do something that I think should be easy, but I cant see how (at least without completely rewriting my code, and that would make a fun side project much less fun)
The control command can change visibility, width, height, it can enable or disable… but it cant change a value???

I know this doesn’t work, but I basically want to do this:

[mySlider is defined outside of the function at the top]

mc.control("mySlider", edit=True, value=variable)

But of course, Value is not a valid flag… so is there a simple way to do this?


#2

OMG, I am so stupid!!!

I found it… the floatSlider has its own edit flag…

sorry for wasting everyone’s time… It was 1:30 am when I was struggling, and now after good night slight, it was easy…