I have a scene created in Houdini and I want to save that as a flipbook to a file location (my desktop for example) using only Python scripting in the python shell/source editor. I have read the sidefx website on creating a flipbook here, but I couldn't figure it out, specifically, I don't know what scene is referring to in that example. Here is what I have written in my source editor. When I call the function, Houdini just shuts down and I don't know why.
# create flipbook
fbsettings = toolutils.sceneViewer().flipbookSettings().stash()
fbsettings.output('$JOB/Desktop/test.avi')
fbsettings.outputToMPlay(0)
# Launch the flipbook
toolutils.sceneViewer().flipbook(viewport=None, settings=fbsettings, open_dialog=False)
I have written a small snippet to create a flipbook. I hope this will help you.
NOTE : Make sure your path directory are correct based on operating system.