papsphilip Posted March 23, 2022 Share Posted March 23, 2022 root = hou.node("/obj/") netbox = root.findNetworkBox("Mynetworkbox") nodes = netbox.nodes() print(nodes) i am trying to get all nodes inside a specific network box but print(netbox) returns None Quote Link to comment Share on other sites More sharing options...
Fenolis Posted March 24, 2022 Share Posted March 24, 2022 (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 March 24, 2022 by Fenolis Quote Link to comment Share on other sites More sharing options...
papsphilip Posted March 30, 2022 Author Share Posted March 30, 2022 thanks @Fenolis! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.