willlinks 1 Posted March 26 Hello, I'm trying to network type category (like sop, dop, lop ...) on the Network Editor Pane in Python. I could get the parent node of the network on the current Network Editor so far. def get_network_type(): # Find the node of the network showed on a current Network Editor Pane. desktop = hou.ui.curDesktop() pane = desktop.paneTabOfType(hou.paneTabType.NetworkEditor) parent_node = pane.pwd() # I'd like to get the network type category of the inside of the parent_node (like Sop, Lop, Object, CopNet, TopNet etc). network_type = ?????? return network_type I have some case that I'm viewing the Sop network in sop_create Lop node or Vop network in material_library Lop so it is not necessary to be the top or parent network is the same network type I'm viewing on the current Network Editor pane. I could pick one node in the current network to figure out the network type by getting node type but I also have situation that there are no node in the network yet but I need to figure out the network type. It would be really nice to have some help. Thank you in advance! Share this post Link to post Share on other sites
animatrix 288 Posted March 26 Hi, You can get it like this: context = parent_node.childTypeCategory().name() 1 Share this post Link to post Share on other sites
willlinks 1 Posted March 26 Thank you so much for the suggestion!! It worked great Share this post Link to post Share on other sites