-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhide_unwanted_nodes.py
More file actions
32 lines (25 loc) · 888 Bytes
/
hide_unwanted_nodes.py
File metadata and controls
32 lines (25 loc) · 888 Bytes
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
# python startup script
# script executed on startup
# https://www.sidefx.com/docs/houdini/hom/locations.html
# to be saved in : ~/houdiniXX.X/pythonX.Xlibs/
# eg: ~/houdini19.0/python3.7libs/uiready.py
import hou
# hide some nodes I don't use.
hidelist =[
'wrinkle','onnx','gltf','ml','fem','unreal','unix',
'muscle','agent','crowd','kinefx','motion','groom','fem','feather',
'tissue','ris','apex','guide'
]
keeplist = [
]
hidden_nodes=[]
cats = hou.nodeTypeCategories()
for cat in cats:
for node_type in cats[cat].nodeTypes():
for node_to_hide in hidelist:
if node_to_hide in node_type and node_type not in keeplist:
hidden_nodes.append(f"{cat} {node_type}")
cats[cat].nodeTypes()[node_type].setHidden(1)
with open("/tmp/houdini_hidden_nodes.txt","w") as file:
for node in hidden_nodes:
file.write(f"{node}\n")