Jump to content

get full network path of network editor currently under mouse cursor


fell00

Recommended Posts

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.

  1. I put this code in a shelf button.
  2. Assigned a hotkey to the shelf button.
  3. 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/"

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...