11-25-2016 07:48 AM
Hello,
how can i change the two colors of the ok-button with properties?
I found the colors property that returns (when read out) an array with 4x2 numbers.
Somewhere was an color-constant where you can pick the color and are not using the numbers...
Thanks for help
Solved! Go to Solution.
11-25-2016 08:05 AM
Hi Only,
I found the colors property that returns (when read out) an array with 4x2 numbers.
Yes,correct.
Did you read the context help for this property node?
Somewhere was an color-constant where you can pick the color and are not using the numbers...
Yes, correct.
"audio/graphics" function menu -> "picture" functions…
Or use quickdrop!
how can i change the two colors of the ok-button with properties?
Instead of reading the property node you have to write new values into!
11-25-2016 08:24 AM
Attached my currently not working solution.
The idea was that the loop makes the button blinking.
How do i have to set the color-constants?
Thx
11-25-2016 08:46 AM - edited 11-25-2016 08:46 AM
Hi Only,
The idea was that the loop makes the button blinking.
How should that button blink (aka change colors) when you have set the very same colors for all 4 states?
To have it "blink" you should have different colors for ON and OFF state!
Btw. you can set those two colors in the right-click properties dialog of the LED…
11-25-2016 08:57 AM
Ok, its working now.
(In the end i dont need a blinking button. I need to change the color as the two colors that can be set with right-click are not enough.)
11-26-2016 04:40 PM
What is it you're hoping to accomplish? I'm struggling to think of any use case where having that many colors for a single button is a good design decision. If I understand what you're trying to accomplish better, we can probably help you find a more elegant way to reach your desired goal.
11-26-2016 07:34 PM
Originally, you talked about a colored OK button (which is a control), but now you seem to want a colored boolean indicator. Clearly, we need more information on the exact use case, because that's quite different..
For an indicator, it is much simpler to use a colorbox. Now "the color is the data" and you can set any color you want at any time. (use a "select" node wired to a boolean to blink between any two). A colorbox can be made to look like an LED if this is desired. See this idea for details (and please vote for it!)