combine if-script output

Moderator: Moderator Group

combine if-script output

Postby rubendesnoo » Wed Aug 10, 2011 2:15 pm

Hi,

Because I need to check two values before an action can be executed, I use an if-node and a script-node.
But it doesn't seems to work here.

like this:
kinect -> if (y > 300 then 1 -> script (if if = 1 then layer 1 opacity 255)

I also have problems with the script WDButtonClick

Does this work with someone else his system?

thanks.
Freelance interactive art production
The Netherlands
rubendesnoo@gmail.com

Widget Designer pro 4.0
rubendesnoo
 
Posts: 141
Joined: Thu Feb 17, 2011 4:10 pm
Location: Netherlands

Re: combine if-script output

Postby Markus Zeppenfeld » Wed Aug 10, 2011 3:29 pm

Hi!

What is the problem with the button click? Are you using a CustomScriptButton? There is the extra scipt WDCustomScriptClick,'ID' for that kind.

I don't exactly get what you mean with your if-question. I think you know, that you donÄt have to use an extra if-node as the if-request is built in the script node.
You want to run a script while y is largen than 300!? That's all? Or do you want to have another if-case behind that?
I have rebuilt this with a mouse input.
Please keep in mind, that every changing above value 300 will again run your script as the condition is true at that moment.

If you need two cases, add another if-node in front of the output node.

Markus

scriptnode.png
You do not have the required permissions to view the files attached to this post.
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: combine if-script output

Postby rubendesnoo » Fri Aug 12, 2011 4:24 pm

I also build it again and it worked perfect.

I must have did something wrong the last time...
Freelance interactive art production
The Netherlands
rubendesnoo@gmail.com

Widget Designer pro 4.0
rubendesnoo
 
Posts: 141
Joined: Thu Feb 17, 2011 4:10 pm
Location: Netherlands


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 7 guests