Available node types

   1579   1   1
User Avatar
Member
897 posts
Joined: July 2018
Offline
I'm writing a python script for copying nodes from one vop network to another but not all vop nodes are available in every kind of vop network. For example, “computenormal” is available in VOPSOP but not in Attribute VOP. How can I find what works where?
B.Henriksson, DICE
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
Not sure of any built in way to check this, but you can get a list of what wont work in a certain node


bad =
for nt in hou.vopNodeTypeCategory().nodeTypes():
try:
hou.node('/obj/geo1/attribvop1').createNode(nt)
except:
bad.append(nt)
print bad
.
  • Quick Links