I'm trying to dynamically add widgets to a panel by updating the widgets
array remotely. Ideally, if a panel already contains, say fader_1
, I'd like to add fader_2
by sending a JSON string from SuperCollider without removing fader_1
from the widgets array...it seems the only way I can do this now is to /GET
the widgets array, make a new array with the existing widgets and the one I want to add, and then /EDIT
panel_1
again...or am I missing something?
I assumed that /EDIT/MERGE
would allow me to add to the array without overwriting all the contents of widgets
but I guess I misunderstood the documentation. If anyone has a better solution to this, please let me know!