forked from ttvd/houdini-geo-vox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruntest.py
26 lines (21 loc) · 827 Bytes
/
runtest.py
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
import hou, sys
root = hou.node("/obj")
obj = root.createNode("geo")
file = obj.createNode("file")
convert = True;
if convert:
file.parm("file").set("/home/symek/work/houdini-geo-vox/example/cube.bgeo")
file.cook()
geometry = file.geometry()
geometry.saveToFile("/home/symek/work/houdini-geo-vox/example/my_cube.vox")
file.parm("file").set("/home/symek/work/houdini-geo-vox/example/my_cube.vox")
file.cook()
else:
file.parm("file").set("/home/symek/work/houdini-geo-vox/example/my_cube.vox")
# file.parm("file").set("/home/symek/work/voxel-model/vox/monument/monu0.vox")
# file.parm("file").set("/home/symek/work/houdini-geo-vox/example/cube.vox")
file.cook()
sys.exit()
# points = obj.createNode("pointsfromvolume")
# points.setFirstInput(file)
# points.parm("particlesep").set(1)