Leap Motion finger data

Luis's icon

Hi

Just started play around with Leap Motion through "aka.leapmotion" and I was wondering how can I parse the finger data by fingers so I can control a polypatch of for example 10 oscillators independent with 10 fingers?
Thanks for your help

Luis Aly

balam's icon

I am wondering the same.

PereVicalet's icon

I suppose the key is in how to extract data in live from cells of object jit.cellblock of aka.leapmotion. Isn't it? Printing outputs of all cells and separate them could be a solution maybe? I'm not sure...

Wetterberg's icon

I wouldn't say so, Perevicalet, that's a roundabout way to do it in my opinion. The jit.cellblock objects are used for visualisation, they're linked to the coll objects you see under the aka.leapmotion object.

I'm sorry if there's an easier way to go about this, but since I have only started working with the leap today I haven't gotten into the groove yet:

Max Patch
Copy patch and select New From Clipboard in Max.

Here's a quick example extracting each finger to a three-member XYZ list - I made it just for you.

PereVicalet's icon

Wow! That's pretty cool. I'm always thinking in the worst roundabout way... Thank you so much @Wetterberg. It's good solution of what @Luis Aly was asking. Now I was thinking and figured out maybe a way for knowing which hand is on Leap. If I put L or R hand, aka.leapmotion doesn't recognize it. From data analysis of fingers positions, taking the thumb a little bit down (y) and separate from others viewing the order, first or fifth, could be a solution for it, isn't it? Or do you think @Wetterberg, do you think is also a roundabout way?
:S
Thanks.

Wetterberg's icon

I don't think there's a reasonable way to detect left or right hands, to be honest. When you think about it, most of the positions of the fingertips can be made with either hand.