ikoon Posted January 30, 2018 Share Posted January 30, 2018 Please, if you select node(s) and then click anywhere in the empty area of Network Editor, nodes are deselected, and last selected node gets pink outline. Can I get this pink node's path in the Python? The pink node is not listed in the selectedNodes() but it is still the actual node in the Parameters pane. Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted January 30, 2018 Share Posted January 30, 2018 Pink node is a current node which is available in parm editor. To get it with python use something like this: network_editor = hou.ui.curDesktop().paneTabOfType(hou.paneTabType.NetworkEditor) cur_node = network_editor.currentNode() 1 Quote Link to comment Share on other sites More sharing options...
ikoon Posted January 31, 2018 Author Share Posted January 31, 2018 Thank you very very much Alexey! Tons of future errors are wiped out Btw I have two Network Editors and this works nicely: parm_pane = hou.ui.curDesktop().paneTabOfType(hou.paneTabType.Parm) node = parm_pane.currentNode() 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.