Jump to content
fell00

get full network path of network editor currently under mouse cursor

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/"

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×