inputAncestors() python ?

   2752   0   0
User Avatar
Member
41 posts
Joined:
Offline
Hi,

I try to put in a list all node of a netword connected to another node, so I use inputAncestors() but if I have a subnet connected to the node ( for instance, an color sop ) the fonction will return all nodes inside this subnet too, so I try to use follow_subnets = False but that will give me the same result, in fact, I have the same result no matter if I use follow_subnet = False or True ot nothing…

Any idea ? i'm on H12.0.543.9

Thanks a lot by advance

Example :
current_node = hou.node(“.”)
inputs_list = list( current_node.inputAncestors(follow_subnets = False) )
My portfolio : www.guillaume-j.com
  • Quick Links