Jump to content

Recommended Posts

Hello hive mind!

I'm looking for a better solution to saving out my flipbooks as .mp4s.

Right now I have ffmpeg installed so I can go directly from mplay and save an .mp4, but I cannot figure out how to change the preset for the menu so that the default file name matches my naming convention. Which is really annoying.


I'm looking for any of these solutions! :) 
1) Does anyone know how to update this ffmpeg window with a custom string in the "Output File" field?
2) Does anyone know where mplay stores the tmp images, so I could grab them straight from there and go to ffmpeg from a shell?
3) Does anyone have a better solution for flipbooking? 


Edited by iFight4theUser

Share this post

Link to post
Share on other sites

Hello Ryan,

saw this topic regarding flipbooks, and as i was pondering over this a while ago as well ,tinkered with some stuff and came up with this ,

sets the hip name from hip file path
sets the screen resolution tp 1920x1080
sets the zoom factor to 100 percent
sets the frame range from start end frame range
this is in Windows so use the backslah forward slash appropriately when in linux
drag and drop on the shelf and change the mode to python or
create your own custom hda with input values



import hou
import os

cur_desktop = hou.ui.curDesktop()
scene = cur_desktop.paneTabOfType(hou.paneTabType.SceneViewer)
flipbook_options = scene.flipbookSettings().stash()
playbar_options = hou.playbar
hip_file = hou.hipFile
path_name = hip_file.name()
file_name = hip_file.basename()
spli_file_name = file_name.split(".")
spli_path_name = path_name.split(".")
frame_range = playbar_options.frameRange()
flipbook_options.frameRange( (int(frame_range[0]),int(frame_range[1])) )
new_dir_path = str(spli_path_name[0])
if not os.path.exists(new_dir_path):
scene.flipbook(scene.curViewport(), flipbook_options)



  • Like 1

Share this post

Link to post
Share on other sites

Hey Hey! Cool thx JN!

I'll check this out and see if I like this solution. I think my plan right now is to have the flipbooks write to a tmp location, and then generate a dropdown menu to select from the tmp versions which I want to run through a os.cmd( fffmpeg ... ) type of command. 



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now