The PROBLEM is that sometimes these drawings are "held" for multiple frames (the same drawing is repeated), and since Houdini has no idea this is happening, it composites the same drawing on top of itself, when it really should hold the previous erase effect for the same amount of time.
We could export only unique drawings, then use a dopesheet from our animator and manually hold each frame as necessary, but I feel like there's a better way. If I use a Difference blend on $F and $F-1, I can tell if $F is a hold frame because the difference will be just a black frame. As far as I can tell I need to:
1) Turn that black frame into a readable value somehow. All black pixels = Hold, anything else = Not Hold. I tried a VEX wrangle in COPs, but didn't get far.
2) Cache/store each individual frame that's generated.
3) IF a hold frame is detected in step 1, re-render the last stored frame instead of whatever the graph would generate.
I didn't see much in COPs that looked like it would help, I feel like I might need to dive into ROPs but I have no idea what I'm doing there or how to connect the two, really. Mostly I just export geometry, I've done very little with rendering.
Thanks!


