automatically add controllers to specific controlWindow in coltrolP5
in
Contributed Library Questions
•
2 years ago
i really like the easy set up of controlP5. using controlWindows makes things a bit more complex though...
right now i am doing:
- controlP5.addSlider("x_gravity",-5,5).linebreak();
and then i have to
- Slider s1 = (Slider)controlP5.controller("x_gravity");
- s1.setWindow(controlWindow);
for each slider / controller.
is there a way to automate this?
if not a way to automatically add sliders to specific controlWindows when added, then possibly a way to iterate through the sliders and then assign them all to the wanted controlWindow?
thanks,
/j
1