Hey guys,

I'm trying to iron out an expression with-in a retime node to generate a stepped curve for a stop-motion animation effect.

I found an expression written by hassanvfx for Shake that he made for a flipbook effect. The same principles apply to what I'm trying to code, now I just need to reverse engineer it. The expression for shake it: newTime = floor( ( floor( time/(step) )*step ) )

Flipbook effect

Anyways, anyone have any ideas? Because so far my attempts to bring his technique into Nuke haven't given me what I want.

My current NON-working expression:
curve((curve(time/(step))*step))

(Note: time and step are knobs built into a gizmo)

Thanks in advance!