30.08.2023, 09:22
Create a scene named Test scene and add objects that you want to control with it.
Then create a 1-bit object an map event script to it. When writing ON (true) it will save current object values that are assigned to this scene. When writing OFF (false) it will run the scene.
Then create a 1-bit object an map event script to it. When writing ON (true) it will save current object values that are assigned to this scene. When writing OFF (false) it will run the scene.
Code:
value = event.getvalue()
name = 'Test scene'
if value then
scene.savelive(name)
else
scene.run(name)
end