-
Get RGB values from from a color picker
Hey everyone,
I’m not the most advanced expression user, but this one has me stumped. Here is what I’m trying to do:
I want to make a close up of a computer screen where you can see individual pixels. Let’s focus on a single pixel. When you are up close, you can see the individual Red/Green/Blue node in the pixel. On a normal computer screen, each pixel looks below it, analyzes the color it needs to display, and then each Red/Green/Blue node of the pixel lights up between a value of 0 and 255. I want to mimic this in After Effects. I want each pixel to look at what is beneath it, use sampleImage to get the color value, and then allow each pixel to light up depending on what the color is.
The problem that I am running into is that I can’t figure out how to take a color from sampleImage, convert it to the 3 separate RGB color values, and then use those to adjust the opacity of the pixel. Currently I can get the pixels to look below it and turn to the color that is beneath it, but that is not how a typical pixel works.
If I could figure out how to get those separate RGB values and then figure out how to set up the expression correctly, I think it could work.
Another option might be to make 3 separate comps with the contents of the screen, one that only shows the red values in black and white, one that shows the green values in black and white, and one that shows the blue values in black and white, and then have each node of the pixel look at what’s underneath it, and use that white value to control the opacity of the pixel.
Any ideas on how I can accomplish this?