Jump to content
soleo

Returns the path of the editor where the mouse is located.

Recommended Posts

Hello, I'm a Houdini Python beginner. I encountered a problem when making a plug-in. I want to return to the path of the panel where the mouse is located, and then generate a new node in the path specified by the mouse. But now I don't know how to get the path of the editor specified by the mouse.

Share this post


Link to post
Share on other sites

hou.ui.paneUnderCursor()
hou.ui.paneTabUnderCursor()

 

panel = hou.ui.paneUnderCursor()

node = panel.pwd()

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

×