Jump to content

Python - get nodes contained in network box

Recommended Posts

root = hou.node("/obj/")
netbox = root.findNetworkBox("Mynetworkbox")
nodes = netbox.nodes()


i am trying to get all nodes inside a specific network box

but print(netbox) returns None

Share this post

Link to post
Share on other sites
Posted (edited)

Are you sure your netbox is named "Mynetworkbox"? The title of the netbox is not its name, rather it is a "comment", which you can retrieve with the comment() method.

If you use the networkBoxes() method, you can get the names of all the netboxes in the specified node. The names of netboxes are typically in the form [double_space]netbox#


Edited by Fenolis

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now