01.03.2016, 08:53
you need to add Event-based script and specify DMX (if it is the name you have tagged DMX objects) as group address /tag.
Then you can add the following script which will update all marked DMX group addresses with the value you set from visualization or other script:
Then you can add the following script which will update all marked DMX group addresses with the value you set from visualization or other script:
Code:
require('user.dmx')
-- get ID as group address last part (x/y/ID)
id = tonumber(event.dst:split('/')[3])
-- get event value (1 byte scaling)
value = event.getvalue()
-- convert from [0..100] to [0..255]
value = math.floor(value * 2.55)
-- set channel ID value
DMX.set(id, value)