Scene#
A Scene object is returned from get_scene.
Properties#
Property |
Value Type |
Description |
Value Example |
|---|---|---|---|
|
string |
Scene name |
|
|
string |
Scene Playback Group name |
|
|
integer or nil |
Playback group number |
|
|
integer |
Integer value of constants: |
|
|
boolean |
Whether the scene is affecting output of any fixtures |
|
|
table |
Table keys and values correspond to custom property names and values |
For example:
scn = get_scene(1)
name = scn.name
state = scn.state
Member functions#
The following are member functions of Scene objects.
start#
start()
Starts the scene. For example:
-- start scene 1
get_scene(1):start()
start_release_others#
start_release_others(group[, fade[, same_group]])
Starts the scene and releases others.
Parameter |
Value Type |
Description |
Value Example |
|---|---|---|---|
|
string or integer |
Optional playback group name or number. If name, prepend the name with |
|
|
float |
Optional fade time to use when releasing other scenes, in seconds |
|
|
boolean |
Optional flag to target the same group as the selected timeline. This flag has no effect when |
|
For example:
-- start scene 1 and release all others in the default time
get_scene(1):start_release_others()
-- start scene 1 and release others except those in playback group "Front of House" in 2 seconds
get_scene(1):start_release_others('!Front of House', 2.0)
-- start scene 1 and release others in the same group in the default time
get_scene(1):start_release_others(nil, nil, true)
release#
release([fade])
Releases the scene. Optionally specify a fade time in seconds as a float, e.g. 2.0.
For example:
-- release scene 3 with a fade of 1 second
get_scene(3):release(1.0)
toggle#
toggle([fade])
Toggles the playback of the scene - if it’s running, release it; if it’s not running, start it. Optionally specify a release fade time in seconds as a float, e.g. 2.0.
For example:
-- toggle scene 2, releasing in time 3 secs if it's running
get_scene(2):release(3.0)