This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Scenes
#14
(23.02.2017, 16:31)admin Wrote: Available functions:

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
I am not able to do this.  I every time get an error stating; attempt to call field 'savelive' (a nil value)

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  Cool
Reply


Messages In This Thread
Scenes - by Thomas - 22.02.2017, 22:36
RE: Scenes - by Erwin van der Zwart - 22.02.2017, 23:30
RE: Scenes - by Thomas - 23.02.2017, 15:07
RE: Scenes - by admin - 23.02.2017, 16:31
RE: Scenes - by Erwin van der Zwart - 23.02.2017, 23:49
RE: Scenes - by Trond Hoyem - 28.07.2020, 10:58
RE: Scenes - by buuuudzik - 23.02.2017, 18:02
RE: Scenes - by admin - 23.02.2017, 18:06
RE: Scenes - by buuuudzik - 23.02.2017, 22:01
RE: Scenes - by admin - 24.02.2017, 07:00
RE: Scenes - by AEK - 27.02.2017, 08:33
RE: Scenes - by Thomas - 28.11.2017, 17:59
RE: Scenes - by admin - 29.11.2017, 07:28
RE: Scenes - by Thomas - 29.11.2017, 13:49
RE: Scenes - by admin - 28.07.2020, 11:00
RE: Scenes - by Trond Hoyem - 28.07.2020, 11:07

Forum Jump: