-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflipbook.py
More file actions
47 lines (30 loc) · 1.08 KB
/
flipbook.py
File metadata and controls
47 lines (30 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import hou
import toolutils
# Get the current viewer
viewer = toolutils.sceneViewer()
# Get the flipbook settings from the viewer and create a stashed copy
fbsettings = viewer.flipbookSettings().stash()
#fbsettings.setResolution((1280, 720))
#fbsettings.setFrameRange((1, 100))
hip = hou.expandString("$HIP")
ver = 1
output_path = f"{hip}/flipbooks/flipbook_v{ver}.$F4.png"
fbsettings.output(output_path)
# Generate the flipbook
viewer.flipbook(viewport=None, settings=fbsettings, open_dialog=False)
print(f"Flipbook generated to: {output_path}")
import hou
import toolutils
# Get the current viewer
viewer = toolutils.sceneViewer()
# Get the flipbook settings from the viewer and create a stashed copy
fbsettings = viewer.flipbookSettings().stash()
#fbsettings.setResolution((1280, 720))
#fbsettings.setFrameRange((1, 100))
hip = hou.expandString("$HIP")
ver = 1
output_path = f"{hip}/flipbooks/flipbook_v{ver}.$F4.png"
fbsettings.output(output_path)
# Generate the flipbook
viewer.flipbook(viewport=None, settings=fbsettings, open_dialog=False)
print(f"Flipbook generated to: {output_path}")