hou.FlipbookSettings : giving error

   1781   1   1
User Avatar
Member
7 posts
Joined: Oct. 2013
Offline
I am trying to set mplay preview's saving location using hip location.
for this I am following help document
scene =  hou.SceneViewer

flipbook_options = scene.flipbookSettings().stash()


flipbook_options.frameRange( (1,120) )
flipbook_options.output('C:\Users\sunlight\Documents\preivews')


scene.flipbook(scene.curViewport(), flipbook_options)

when I run :  hou.SceneViewer.flipbookSettings()

Output is :unbound method flipbookSettings() must be called with SceneViewer instance as first argument.

any help on this?
Edited by lightreacher - Nov. 10, 2017 09:53:15
Himanshu Solanki
------------------------
Houdini TD
User Avatar
Member
20 posts
Joined: Oct. 2013
Offline
Hi,
I tried and this works for me, why the help document does not work, i do not know
-ralph

import toolutils

# Copy the viewer's current flipbook settings
flipbook_options = toolutils.sceneViewer().flipbookSettings().stash()

# Change the settings however you need
# (for example, set the frame range and output filename)
flipbook_options.frameRange( (1, 10) )
flipbook_options.output(“C:\\temp\\test.$F.jpg”)

# Generate the flipbook using the modified settings
toolutils.sceneViewer().flipbook(toolutils.sceneViewer().curViewport(), flipbook_options)
  • Quick Links