We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is there an option to change properties of every controller of a Group at once? Say for example setLabelVisible(false) for every controller of a group by calling the method within the function invoked by an other controller's change event?
Answers
I am not sure about working with groups in controlP5. One way to do what you are asking for:
and then you could do either
cp5.hide()
orcp5.show()
Kf
@kfrajer So something like
cp5.setColorActive(color)
will affect all the items attached to it?@Lord_of_the_Galaxy Not sure. I doubt it. Each controller will have their own color settings. This works for the OP's question because each controller is associated to a controlP5 object. If one needs to hide controllers in groups, you could have different controlP5 objects in your sketch and hide or show them at your convenience. I have to say I am not totally familiar with this library. I believe there is also a group option, or group behavior. I have seen it for option buttons but not sure if it will work with other controllers.
Kf
OK, thanks @kfrajer.
Hi, if you change the colors of a group after you have added controllers to it, these controllers will change their colors accordingly, see example below