-
Need to Analyze Pixel Differences between frames to Trigger Expression
I’m trying to create an expression that can compare one frame of an animation layer with the next frame to determine if there is any difference between the two and if so, trigger a texture overlay precomp to cycle to the next texture (if not it stays static).
Sometimes the animation is on twos but sometimes it switches to ones, and sometimes it’s just static because the character is just supposed to be static. The outcome I’m trying to achieve is having some texture overlays that change every time the animation changes without having to manually keyframe everything.
I know that you can use the Difference Matte effect to analyze two frames and only display the differences, which is great if I just duplicate the layer and offset by one frame. What I’d love to know is if I can easily analyze each frame to do something like return a “TRUE” value if there is any pixel data within the frame, and return a “FALSE” value if there is no pixel data within the frame. If I can get help with either achieving this or being told it’s not possible, that’d be a great first step!
Thanks in advance!