Equal script to FBeditor input selection switch - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Equal script to FBeditor input selection switch (/showthread.php?tid=3809) |
Equal script to FBeditor input selection switch - ONJ - 14.01.2022 Hello Is someone having a more simple event based script that is equal to FBeditor Input selection switch? Code: require('custom.fbeditor20.Select_switch') RE: Equal script to FBeditor input selection switch - Daniel - 14.01.2022 Something like this should do. TAG all input objects and select and create event script from this TAG Code: select = grp.getvalue('1/1/1') RE: Equal script to FBeditor input selection switch - ONJ - 15.01.2022 Thank you, it works very well. Is it possible to add an delay in the script, so it waits few seconds before it runs when the select switch change state? RE: Equal script to FBeditor input selection switch - Daniel - 17.01.2022 Adding delay in event script which is triggered by few objects is not recommended as it will run each time when change happen and each time delay will start. You may end up in situation when not correct input is selected in time. Delay is simply added like this -- wait for 1.5 seconds os.sleep(1.5) |