Jump to content

how to list the nodes wired into a node.


Symbolic

Recommended Posts

Hi,

I am sure this is really simple. It is just too early in the mourning for me I guess :)

How can I list the names of the nodes being wired into a target node? Like for example the names of the 7 nodes going into a merge node?

Thanks.

Link to comment
Share on other sites

Hi,

I am sure this is really simple. It is just too early in the mourning for me I guess :)

How can I list the names of the nodes being wired into a target node? Like for example the names of the 7 nodes going into a merge node?

Thanks.

>>> a = hou.node("/obj/geo3/merge1")

>>> a

<hou.SopNode of type merge at /obj/geo3/merge1>

>>> print [i.name() for i in a.inputs()]

['file1', 'file2', 'file3', 'file4']

))

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...