The problem
I've been having trouble getting "/osc/notify/vcs/... 1" to consistently give me feedback with the number of widgets. "/osc/respond_to 8000" has been pretty good, but the notify will fail again and again, and then, mysteriously work.
When I do get the number of widgets from the notify, I just continue asking until I get "number of widgets" unique widgets. In other words, if I get back "/vcs/notify/vcs/... 42" I have a nested loop that contines to request widgets 0-41 until it actually ends up with 42 unique JSON responses, converted to Python lists, stored.
However, since I cannot reliably determine the number of widgets every time, wthout the notify response, I cannot determine if I've catalogged them all.
My question
If I've previously managed to get all the way through and have saved the label -> concreteEventID mappings, and I shut down and restart Paca and the computer, will the mappings stay the same (provided I don't edit the Sound)?
Related question
Is there some way to force /osc/notify/vcs to respond with the number of widgets? Some sort of reset? (I've also tried setting "/ocs/respond_to_default 8000" in case that would encourage better behavior, but thus far, nay. I think I've gotten "luckiest" after starting my code and then closing the sound, recycling the memory, opening the sound and doing a compile-load-start. But that is a really awkward way to fix the problem and doesn't always seem to work.) Or should I just cycle through until I start getting responses with empty strings?