Page 1 of 1

Filter datas in array

Posted: 09 Feb 2023, 10:49
by Gilsornette
Hello,

I'd like to get specific datas from Leap motion Gesture; i.e. "swipe left" which begin with ID 200 and have 11 different values.
How can I filter easily those datas from the gesture array? Knowing that those datas are melted with other starting with different ID's (but each time with the eleven values after).
I'm looking for a kind of module (or a way to do) like Array extract but instead of input "Start pos" have an "ID" input.
I hope it's clear.
Thank you in advance.

Re: Filter datas in array

Posted: 10 Feb 2023, 08:55
by senso
some useful modules in you case:
- array -find-index (to search 200)
- array-extract (o extract 11 elements from the position found above)

Re: Filter datas in array

Posted: 10 Feb 2023, 10:23
by Gilsornette
Thank you!