Jump to content
Sign in to follow this  
Drughi

get back to object

Recommended Posts

Hi!

How to set panes to a specified node? I tried hou.cd() and hou.setPwd()
I'm triggering a python script from an hda. In the script I copy nodes and this leads to a change in the path of my panes - its focusing on the copied nodes. I don't want this and want to refocus on the inital node.

Share this post


Link to post
Share on other sites

You need to use setCurrent method in hou.Node. For eg., say you've copy pasted some nodes in the geometry node called geo1 and to get back to the object level, just setCurrent on geo1.

geo1 = hou.node("/obj/geo1")
geo1.setCurrent(True)

 

-J

  • Like 2

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
Sign in to follow this  

×