tracking dat from cv.jit.touches

drewmcm's icon

hi,

I've looked through forum and might have missed it -

I want to track the coordinates of the separate blobs from cv.jit.touches simultaneously. I see the lists from touch, drag and release only display latest blob (i.e. blob 5 of 5), how do I keep tracking dat from the other earlier created blobs - (i.e. 1-4).

I need each blob as it's created to control audio parameters, so need to keep tracking the coordinates of them all simultaneously.

thanks

drew

LSka's icon

This is what cv.jit.touches should actually do.. have you tried connecting the "drag" output to [print] object? What do you get?

Tobias Rosenberger's icon

first number of the lists is the index (which blob), counting upwards from 0.
make a route object (route 0 1 2 3 4 5...) to get x y rad for indexed blobs

drewmcm's icon

thanks guys, thought it'd be something relatively simple, just couldn't find/figure it -

ta