If any part of my description is confusing, let me know. It’s a bit difficult to explain what I’m trying to do.
This is meant to be an end credit sequence, so there is a composition that will have the scrolling text/graphics, and then the layers on top of that will be used to create this pixel effect.
This is what I have in my composition right now:
3 shape layers (One represents the red node, green node, and blue node inside of a pixel)
A composition below it where I will put the scrolling text/graphics that will eventually become pixelated. (Let’s call this the “Main Content” layer)
Lets say that there is a solid green color underneath one of the pixels. In my head, this is how it should work:
Each of the shape layers has a slider control on it that will retain a numerical value. The expression on the slider control looks at the location of the shape layer and uses the sampleImage() expression to see the color value of the “Main content” layer beneath it. But instead of returning a specific color, I’m trying to figure out how to get the separated RGB value from the layer. So since in this example, the color beneath the pixel is solid green, the shape layer representing the red node will return a value of 0, the shape layer for the green node will return a value of 255, and then the shape layer for blue will return a value of 0. So when there is a solid green color underneath the pixel, only the green pixel should be set to 100% opacity, and the other pixels should be off. So I could have an expression on the opacity of the green pixel to look at the slider control value (0-255) and convert it to a 0%-100% number that the opacity can use.