Okay, let me explain. I’m trying to port to After Effects this Bridge script:
https://davidmilligan.github.io/BridgeRamp/
Which deflickers an image sequence. The way it works is by computing an histogram of every selected image, then comparing the brightness level of a given percentile and adjusting the images’ exposures until they all match.
For it to work, I need to access AE’s composition as a bitmap, measuring the pixel’s RGB values to construct the histogram. That can be done using Dan’s method, though it’s a bit kludgy…
…but the script also provides a preview of which parts of the image are in a given percentile. You select a value, hit “Preview” and it shows you in red the corresponding parts of the image. The way the script does it is by creating a temp JPG file, which is why I was asking about that in my previous question.
Now that you mention using one of the keyers… I’ll have to think about it. But still, it’s quite a kludge (reading the AE scripting guide, it’s obvious that it’s not designed to do stuff like this *at all*), and there’s also the matter of performance…