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.

DMX with LM4
#4
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:

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


Messages In This Thread
DMX with LM4 - by s.prathmesh - 29.02.2016, 12:43
RE: DMX with LM4 - by edgars - 29.02.2016, 13:26
RE: DMX with LM4 - by s.prathmesh - 29.02.2016, 17:37
RE: DMX with LM4 - by edgars - 01.03.2016, 08:53

Forum Jump: