avizzle Posted May 16, 2019 Share Posted May 16, 2019 Using python, how can I get my current node. Not the selected node, but the node that I'm currently in. In my search I keep coming across hou.pwd(), but that always just returns / whenever I try it. I figured out how to get the parent of a selected node, but that doesn't work if you don't have anything selected. Thanks for any help! Quote Link to comment Share on other sites More sharing options...
anim Posted May 17, 2019 Share Posted May 17, 2019 it all depends on the pane you want the object from as in your current desktop you can have network editor pane, parameter pane and viewport, each of them can have different current node or you can even have more network editor panes, each of them with different current node but let's say you want the node level from the first found Network Editor Pane found on your current desktop ne = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor, 0) node = ne.pwd() 1 Quote Link to comment Share on other sites More sharing options...
avizzle Posted May 17, 2019 Author Share Posted May 17, 2019 Ah, ha, that makes sense now. Just tried it out and works perfectly, thank you for the answer, I appreciate it! 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.