Gesture node

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

Gesture node

Postby pedro_benito » Wed Apr 05, 2017 10:03 am

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.
pedro_benito
 
Posts: 12
Joined: Mon May 07, 2012 6:54 pm

Re: Gesture node

Postby Thomas Mrozek » Wed Apr 05, 2017 12:24 pm

Hi,
thank you for reporting this issue. It is on our Bugfixing list now.
cheers
Thomas
Thomas Mrozek
Technical Support Engineer
User avatar
Thomas Mrozek
 
Posts: 63
Joined: Mon Apr 20, 2009 11:08 am

Re: Gesture node

Postby Thomas Mrozek » Wed Apr 05, 2017 12:42 pm

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)
   }

}
Thomas Mrozek
Technical Support Engineer
User avatar
Thomas Mrozek
 
Posts: 63
Joined: Mon Apr 20, 2009 11:08 am

Re: Gesture node

Postby AViefhues » Wed Apr 05, 2017 1:33 pm

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
User avatar
AViefhues
 
Posts: 31
Joined: Tue Jan 25, 2011 4:28 pm
Location: Gelsenkirchen

Re: Gesture node

Postby lumentumnetwork » Thu Apr 13, 2017 9:35 pm

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
lumentumnetwork
 
Posts: 2
Joined: Thu Dec 22, 2016 9:16 pm

Re: Gesture node

Postby lumentumnetwork » Thu Apr 13, 2017 9:37 pm

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
lumentumnetwork
 
Posts: 2
Joined: Thu Dec 22, 2016 9:16 pm


Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 1 guest

cron