Logic Machine Forum
SCENES VS SCRIPTS - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2)
+--- Thread: SCENES VS SCRIPTS (/showthread.php?tid=4949)



SCENES VS SCRIPTS - Frank68 - 06.09.2023

Greetings

I need to drive various lights divided into scenes
 with groups and subgroups, I should use scripts to activate or deactivate scenes or compile the scenes with all the addresses to drive, both for switching on and off.

Thanks so much


RE: SCENES VS SCRIPTS - admin - 06.09.2023

Both approaches will work. You can trigger scenes from scripts and vice versa. Just make sure you don't create an infinite loop Smile


RE: SCENES VS SCRIPTS - Frank68 - 06.09.2023

(06.09.2023, 13:01)admin Wrote: Both approaches will work. You can trigger scenes from scripts and vice versa. Just make sure you don't create an infinite loop Smile

Yes

in fact my fear is precisely that I was trying to create a script that activates or deactivates subgroups of scenes so that it is also convenient for future modification.
Could this be a valid idea?

A thousand thanks


RE: SCENES VS SCRIPTS - admin - 06.09.2023

There's a possibility to run multiple scenes from a script by using tags: https://openrb.com/docs/lua.htm#scene.tagrun