by Julia Foest » Tue Jun 01, 2010 10:07 am
Hi Linton,
you could do it this way:
Create a normal button (not CS button) and the following node chain: button input node --> script output node.
In the script node, enter:
if Button input value = 1
then "your script list", and as last script [WDButtonClick,'ID'].
As soon as you press the button, the script cycle starts.
To break this routine, there are several possibilities.
1. (pausing the routine): create a CS Button with the script [WDNodeDisableOutput,'NodeID'], to continue the routine, use [WDNodeEnableOutput,'NodeID'].
2. (stopping the routinge): create a CS Button with the script [WDNodeSetParam,'NodeID','ParamID','Value']. With this you can change the Button ID parameter inside the Button Input Node (displayed with the little index 1) to eg. 0, so the script output node won't get a new trigger. To be able to start the routine again via Buttonclick, set the Button parameter ID back to its origin value.
Hope this is not confusing..
Best regards,
Julia