MADRIX Forum • How to make a layer output for non-dimmable
Page 1 of 1

How to make a layer output for non-dimmable

Posted: Wed Jul 12, 2017 12:45 pm
by mookai1973
Dear All,

I would like to make a layer map output valve 0 and 255 for control a solenoid valve, if in area have a color intensity 0-127 I need output valve 0 and if have valve 128-255 I need output to full valve 255

Thank you for help

Re: How to make a layer output for non-dimmable

Posted: Thu Jul 13, 2017 2:48 pm
by Guertler
Hello mookai1973,

It is possible to set one or more DMX channels to the DMX value of 0 or 255 when a desired area has a color value below or above 127 when you are using a MADRIX macro.
This macro must check the color value(s) of the desired pixel area and must set another pixel or pixel area to the value of 0 if the color value is below 127 and to 255 if the color value is above 255.
.
To check the current color value you will need the macro function "getPixel" or "getPixelArea".
To set another pixel to the desired value you will need the macro function "setPixel".
Under the following link you will find the describtion of the MADRIX Script and Macro functions:
http://help.madrix.com/m3/html/script/i ... tions.html
.
If you need help to create such a script, please send us an e-mail including the MADRIX setup and a description which area must be checked to info[at]madrix[dot] com.