28.07.2020, 10:58
(This post was last modified: 28.07.2020, 10:59 by Trond Hoyem.)
(23.02.2017, 16:31)admin Wrote: Available functions:I am not able to do this. I every time get an error stating; attempt to call field 'savelive' (a nil value)
Code:scene.run = function(alias)
run scene, alias can be a name or an id
scene.savelive = function(alias)
save live value for the given scene alias
scene.set = function(alias, active)
enable/disable scene, this will only disable running the scene
by sending a specified value to trigger object. scene can be
still executed via run() no matter if it is enabled or not
scene.enable = function(alias)
shortcut for scene.set(alias, true)
scene.disable = function(alias)
shortcut for scene.set(alias, false)
scene.status = function(alias)
returns true when scene is enabled, false otherwise
scene.tagset = function(tag, active)
enable/disable all scenes having the given tag
scene.tagenable = function(tag)
shortcut for scene.tagset(tag, true)
scene.tagdisable = function(tag)
shortcut for scene.tagset(tag, false)
scene.tagstatus = function(tag)
returns two values: number of enabled and disabled scenes
for the given tag
scene.tagsavelive = function(tag)
save live values for all scenes having the given tag
scene.tagrun = function(tag)
run all scenes having the given tag
The code is
Code:
if scene > 0 and scene < 63 then
scene.savelive(navn)
end
Am I missing something, or just doing it wrong?
There are 10 kinds of people in the world; those who can read binary and those who don't