Page 1 of 1

Gesture node

PostPosted: Wed Apr 05, 2017 10:03 am
by pedro_benito
Hi there,

I discover that the gesture node is completely unresponsive in WD6 (I assume will be fix in next releases). I need to detect the movement swipe right, left and down from the AirScan. There is anyway to detect this without going back to WD4.7??

Thank you.

Re: Gesture node

PostPosted: Wed Apr 05, 2017 12:24 pm
by Thomas Mrozek
Hi,
thank you for reporting this issue. It is on our Bugfixing list now.
cheers
Thomas

Re: Gesture node

PostPosted: Wed Apr 05, 2017 12:42 pm
by Thomas Mrozek
As workaround you can maybe try to use a fader and a actionscript node (triggered by this fader) with following code:

Code: Select all
var triggered = false
VGetFaderVal("value",FaderNo)

var delta = 0
delta = value - swipeBuffer.ToDouble
swipeBuffer = value

if value != 0 {
   if delta < 0 {
      do stuff (swipe left)
      triggered = true
   }

   if delta > 0 {
      do stuff (swipe right)
      triggered = true
   }   
   if triggered = true {
       WDFaderValue(FaderNo,0)
   }

}

Re: Gesture node

PostPosted: Wed Apr 05, 2017 1:33 pm
by AViefhues
Hi,

I've done this by using nodes:
take the screen x coordinate:
-> Use the delta node
-> if the delta is higher/lower a specific value -> script node swipe left /right

problem: you just want to recognize the delta while someone is continuously on the screen and not if you touch one point on the left and then one on the right side...
to prevent this just send the x coordinate to the delta node if the aircan says "active" otherwise send -1000 to the node, and then you can filter all very large deltas an only use the values inside the interesting range.

use the same way for the y coordinates

to make the system more robust and prevent collisions of up/down an left/right swipes block one direction depending on the absolute value of both deltas.
for example: If the absolute value of the x screen delta is higher than the absolute value of the y screen delta -> just look for left or right swipe.

for me this works very fine an if you want you can block the hole swipe-system by sending no values to the delta nodes. I do so while a swipe action is performed.

cheers
Alex

Re: Gesture node

PostPosted: Thu Apr 13, 2017 9:35 pm
by lumentumnetwork
Hello,

Is there anywhere we can go to get a more detailed description of what each node does for those few of us who are not really good at coding?

Thank you

Re: Gesture node

PostPosted: Thu Apr 13, 2017 9:37 pm
by lumentumnetwork
Hello,

When using airscan node, how do I make WD only interact with the layer which is being touched on the screen, as opposed to sticking to one layer?

Thanks

Re: Gesture node

PostPosted: Wed Jun 06, 2018 7:05 pm
by lumentumnetwork
Thanks all for the responses!