Posts: 112
Threads: 39
Joined: Jul 2017
Reputation:
1
Hello,
I have a script inside of boolean object which I need to set to 1, without triggering the script inside. Is there anything simpler than doing it with flags?
Posts: 4643
Threads: 24
Joined: Aug 2017
Reputation:
207
Hi
What about if statement?
If 1 then do nothing else ....your script...end
BR
------------------------------
Ctrl+F5
Posts: 112
Threads: 39
Joined: Jul 2017
Reputation:
1
13.06.2018, 09:57
(This post was last modified: 13.06.2018, 09:58 by Jayce.)
It's way more complicated than that, let me explain myself better. I'm controlling a LED strip with a single push button. However, the strip is ALSO controlled by Auro by Basalte (motion sensor). What pushbutton does is it enables blocking of the Auro only. The led strip itself is turned on by a script inside the block object. That means when I need to turn on light without it being affected by Auro I just press a button. The problem comes in when I also want to control brightness of the LED strip from Mosaic. Whenever I set brightness to a value, blocking object turns on as I want it to but automatically the script in the blocking object happens which I don't want.
Anyway, it has gotten way too complicated. I'll just do it with flag objects or with storage. Thank you very much anyways.