fell00 Posted July 20, 2021 Share Posted July 20, 2021 Hi, Using python in houdini. I'm trying to get the full network path from the network editor that's under my mouse cursor. This is the code I have so far. I put this code in a shelf button. Assigned a hotkey to the shelf button. When I'm over my network editor I press the hotkey and this works, getting the name of the panetab of the network editor under my mouse cursor. paneTabObj = hou.ui.paneTabUnderCursor() print paneTabObj.name() #prints panetab6 in my case I'm trying to find a way to get the network path of this network editor panetab. For example "/ob/geo1/subnet2/" Quote Link to comment Share on other sites More sharing options...
animatrix Posted July 21, 2021 Share Posted July 21, 2021 Hi, You can use pwd and path functions: paneTabObj = hou.ui.paneTabUnderCursor() print paneTabObj.pwd().path() 1 Quote Link to comment Share on other sites More sharing options...
fell00 Posted July 22, 2021 Author Share Posted July 22, 2021 Hi, Thanks, it works great!.. I'm still getting used to reading the python-hou documention.. 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.