beautypg.com

Tpc user interface control, Checking the local controller number – ETC Unison Mosaic Designer v1.11.0 User Manual

Page 209

background image

Lua scripts

civil_dusk.minute

The minute of civil dusk (0-59)

civil_dusk.second

The second of civil dusk (0-59)

nautical_dawn.hour

The hour of nautical dawn (0-23)

nautical_dawn.minute

The minute of nautical dawn (0-59)

nautical_dawn.second

The second of nautical dawn (0-59)

nautical_dusk.hour

The hour of nautical dusk (0-23)

nautical_dusk.minute

The minute of nautical dusk (0-59)

nautical_dusk.second

The second of nautical dusk (0-59)

NOTE: The location of the Controller must be set correctly in

project properties

for these to return the correct val-

ues.

TPC user interface control

These are only executed on the local Controller, which must be a TPC.

set_control_value(controlKey, valueIndex, value)

Sets the value of the TPC control. Control key is a string,
e.g. "slider002". Value index 1 for sliders or 1, 2 or 3 for col-
our pickers

set_control_value(controlKey, value)

Shorthand form with value index equal to 1, useful for
sliders. Control key is a string, e.g. "slider002"

set_control_state(controlKey, stateName)

Provide feedback by changing the appearance of a control.
Control key is a string, e.g. "slider002".

set_page(pageName)

Change the current page of the user interface

set_locked(lock)

Lock or unlock the TPC (lock: true of false)

set_enabled(enable)

Enable or disable the user interface (enable: true of false)

Accessing the current state of the digital inputs on this Controller

digital[index]

Boolean value on input (index 1 to 8)

Accessing the values of DMX inputs on the local Controller

DMXIN[channel]

The value of the specified channel (1 to 512)

get_dmxin(x)

Returns a DMXIN object for port (x is 1 or 2)

Checking the local Controller number

get_controller_number()

Returns the number of this Controller

Checking the status of timelines (local to this Controller)

is_timeline_running(num)

Is timeline with specified user number between start and end time?

is_timeline_onstage(num)

Is timeline with specified user number actually in control of fixtures on
this Controller?

- 209 -