In rule machine I have a routine which sets the colour bulb a random colour. I’d like to exclude red as I use that for warnings/notifications any idea how to exclude the colour but still call the random function? Thanks
With the "Random color" option, no, but you could create a local variable, set it to a random value between 0-100, check if the value is close to red (maybe <5 or >95, or whatever your eyes tell you), set it to something else if so (maybe a specific color of your choosing to make it easy), then use the "Set Color" option with "Variable hue?" selected and use this variable.
You'll probably have to do the same for saturation unless you want to use a constant (anything too close to 0 will start to look white, so you might not want to), and same for level -- you do need all three as inputs, whether variable or not.
(Or, I suppose, you could use a custom command and just call "setHue," passing this number variable as the only parameter.)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.