beautypg.com

ETC Unison Mosaic Designer v1.11.0 User Manual

Page 211

background image

Lua scripts

to fade.

clear_fixture(fixture, time)

Clear the direct settings on fixture with optional fade time (in seconds).

clear_all(time)

Clear all direct settings with optional fade time.

Accessing the values of DMX channels (local to this Controller)

DMXOUT[channel]

The value of the specified channel (1 to 512)

get_dmxout(universe)

Returns a DMXOUT object for universe (see table below)

Park and Unpark DMX channels (local to this Controller)

park(universe, channel, value)

Park the specified channel (1-512) on universe (see table below) at value
(0-255).

unpark(universe, channel)

Unpark the specified channel (1-512) on universe (see table below).

The value for the universe argument for both of the above functions depends on the protocol type:

MSC 1's DMX

Universe = 1.

MSC 2's DMX

Universe = 1 or 2.

Controller's Art-Net II

Universe = ARTNET+.

Controller's Pathport

Universe = PATHPORT+.

Controller's ETCNet2

Universe = NET2+.

Controller's sACN

Universe = SACN+.

Controller's KiNet

Universe is obtained using the get_kinet_universe(powerSupplyNum,
portNum) function.

For example:

park(ARTNET+2, 1, 255)

Parks channel 1 of Art-Net II universe 2 at full.

park(ARTNET, 2, 128)

Parks channel 2 of Art-Net II universe 0 at 50%.

park(SACN+1, 1, 255)

Parks channel 1 of sACN universe 1 at full.

park(get_kinet_universe(2, 15), 1,
255)

Parks channel 1 of port 15 of KiNet power supply 2 at full.

Accessing the current state of the digital inputs on a RIO

get_rio(type, number)

Returns as an object the RIO by type (RIO_80, RIO_44 or RIO_08) and
number.

rio[input]

Boolean value on input (1 to 8) of the returned RIO object.

For example:

myRIO = get_rio(RIO_80, 2)

rioInput1 = myRIO[1]

- 211 -