18.03.2020, 09:35
Use random scene resident script from our examples. Set resident script name to DMX random scene
Make sure that only resident script has this name otherwise it won't work correctly.
Attach an event script to a binary object, it will enable resident script when value is true and disable it when value is false.
Make sure that only resident script has this name otherwise it won't work correctly.
Attach an event script to a binary object, it will enable resident script when value is true and disable it when value is false.
Code:
scriptname = 'DMX random scene'
value = event.getvalue()
if value then
script.enable(scriptname)
else
script.disable(scriptname)
end