Hey! an update from here...
first, sorry about the udp thing...I completely confused server and client terminology there...anyway, the udp listener works like a charm and now I am able to get the tracker data into vvvv.
The tricky part for me is to parse the json string that comes through udp, everything is fine when it comes with only one tracker id, but when when it comes with two or more things get tricky, here is the tracks portion of the json with more than one id:
Now, right out of the parsing section of my patch, I get those fields in a spread (string):
Each udp packet comes with a json string with different amount of ids, so MY problem is how to handle that dynamic length changing spread...right now my two solutions are messy and not elegant at the least...because in the first one I ended up with a lot of getslices and in the second one with an intimidating stallone that sometimes crashes the hell out. In both cases I ended up sort of hardcoding the ammount of IDs, or the field´s position in the spread to get each trackers transform, or even having to create different 3d objects for each damn ID...
Please check the patch to see it more clearly...
udp_listener.v4p (48.4 KB)
In simply words, I need to learn how to handle a dynamic length spread correctly...or maybe I am not doing the parsing section the right way...