How to access current Hand Gesture state string ("open", "horns", etc)?

Hey guys!

What is the method to access current hand gesture state? Can find it anywhere.

I know I can hardcode the outcome for each particular gesture (f.e. script.handTracker.registerDescriptionStart("open", triggerFunc), but how can I access the current state as a variable? So this variable would store current state of the hand gesture and the code looked like script.handTracker.registerDescriptionStart(currendHandGestureState, triggerFunc)

Best Answer

  • Daria Keller
    Daria Keller Posts: 6
    #2 Answer ✓

    Found the best way is to run "for loop" of "registerDescriptionStart" with array of labels, indicating hand gestures, and control it through "switch" in triggerFunc