Page 1 of 1

Display RGB Value in monitor?

Posted: 03 Nov 2012 04:24
by whatisvalis
This is probably a simple one, but can you display the RGB value of an Objects colour in a monitor?

cheers,

JD

Re: Display RGB Value in monitor?

Posted: 03 Nov 2012 20:47
by brianc
Sure, just set the value of the monitor to getattribute(some_object, 'color'). That for most objects, that'll show a vector of colors, e.g. for a CustomButton, it shows the on and off color values.

Re: Display RGB Value in monitor?

Posted: 03 Nov 2012 21:10
by whatisvalis
Damn, so close! Pretty sure I tried that, must have had a grammatical error. Thanks for the help!