FORUMS: list search recent posts

read out RGB values

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Henning Lederer
read out RGB values
on Jun 1, 2011 at 4:21:53 pm

Hi there.
Is it possible to read out the RGB values separately from an effect like Tint or a Colour Slider?
So, if I have picked a colour, I would like to get the three values with sliders or something similar, so that I can write them out on a new text layer as numeral values – like: R = 255 / G = 42 / B = 111

Thanks for your help!
Henning

--

Henning M. Lederer /// http://www.led-r-r.net


Return to posts index

Dan Ebberts
Re: read out RGB values
on Jun 1, 2011 at 5:38:25 pm

Something like this source text expression, probably:

c = thisComp.layer("Layer 1").effect("Tint")("Map Black To") ;
"R = " + Math.round(c[0]*255) + " / G = " + Math.round(c[1]*255) + " / B = " + Math.round(c[2]*255)


Dan



Return to posts index

Henning Lederer
Re: read out RGB values
on Jun 1, 2011 at 7:56:10 pm

Hi Dan,

Thanks a lot. This expression is working very well!

Cheers,
Henning

--

Henning M. Lederer /// http://www.led-r-r.net


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]