Logic Machine Forum
script for changing object properties - 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: script for changing object properties (/showthread.php?tid=3840)



script for changing object properties - anagno@bluewin.ch - 31.01.2022

I would like to change object properties (specifically, to turn on/off the object log) via script. Is this possible?


RE: script for changing object properties - admin - 01.02.2022

Like this:
Code:
addr = '0/0/1'
enabled = true

db:update('objects', { disablelog = not enabled }, { id = buslib.encodega(addr) })
script.reloadgroupmonitor()



RE: script for changing object properties - anagno@bluewin.ch - 01.02.2022

excellent! thank you very much!