assurance-tunnel
assurance-tunnel
assurance-tunnel
assurance-tunnel

[ANSWERED] How to make hand count on Leap motion watcher trigger a value only when 2 hands are detected?



  • I'm trying to input a value of 50 to 3D particle's 'start size' only when LeapMotion Watcher's hand count detects 2 hands.  Otherwise, the value should be 40.   I see there is an actor called HID value listener, so I tried setting it to 2, and linking Motion Watcher's hand count out to the trigger.  Then I ran the listener out to a trigger value and entered 50 into the trigger value.  However, that doesn't seem to be the way to do it; the value remains at 40 even with 2 hands detected.  Also, once 2 hands were detected and then no longer present, what is the best way to change that value back to 40?

    Thank you so much!



  • Comparator actor is going to work here. run the Hand Count output from the LEAP into the comparator - set it to EQ 2 - and use the outputs to trigger values of 50 or 40 on the True or False triggers.


  • Tech Staff

    @dbini said:

    Comparator actor is going to work here. run the Hand Count output from the LEAP into the comparator - set it to EQ 2 - and use the outputs to trigger values of 50 or 40 on the True or False triggers.

     Here's a screenshot of what Dbini suggested (for visual-learners like myself).