7 ms·
I see that Revideo uses generator functions which seems intuitive to me as it linearizes frame sequences wrt time as the function yields. How does this compare
by pavi2410 2y ago
I see that Revideo uses generator functions which seems intuitive to me as it linearizes frame sequences wrt time as the function yields.
How does this compare to Remotion^ which uses "React" mental model?
^: https://remotion.dev https://remotion.dev
- hkonsti 2y agoYes, exactly! We're also big fans of the generator function model. In Remotion, you get the current frame of the animation through a React hook called useCurrentFrame(). You then use React to build the UI based on the return value of the hook. By structuring it as a generator function, later parts of the function are for later parts of the animation, which makes it a bit easier to read and write. We found this to be a little more intuitive. Ultimately it probably comes down to personal preference.
- deleted 2y ago[deleted]