Jump to content
michaelb-01

Get full path to paneTab

Recommended Posts

I'm trying to get the full path to the parent node in the current paneTab under the users mouse. I'm currently doing the following to return the paneTab:

pane = hou.ui.paneTabUnderCursor()

I can get the current parent node with:

pane.pwd()

 

So if i'm in /obj/geo1/subnet1 this will return subnet1 but how do I get the full path? (/obj/geo1/subnet1)

Share this post


Link to post
Share on other sites

Sorry I thought pane.pwd() was just returning a string but I think its actually the hou.node so I can just do hou.pwd().path()

  • Like 1

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

×