ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Count objet with sampleimage

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Diego gambaruta
Count objet with sampleimage
on Jul 18, 2017 at 10:14:55 pm

Im making an installation, we make pixelart animation with the same grid every frame and a few colors.
Now i need to find a way to count pixel per frame and per color

I think to use sampleimage expression. I can make a layer per color with a keyer. The idea is with sampleimage make a min and max value that I can measure with all the screen on and all off. With this value teoricaly I can count dots in each frame if I know how many I have.

But I cant find a way, because I have aprox 2000 dots (all on) and the color deth of the image dont allow.

Here is a frame of the grid

Does this make sense? Is it possible? or is another way to do this?


Return to posts index

Diego gambaruta
Re: Count objet with sampleimage
on Jul 19, 2017 at 2:23:40 pm

can I use a lot of point control expression for sample image for each point with alpha channel can get 0 or 1, if I get and array of results and simply make the addition of them?

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved