Jump to content
younglegend

Load new instance of houdini from current scene

Recommended Posts

How do you load a new instance of houdini from current scene's shelf tool? hou.hipFile.load(path) loads to current scene.

Share this post


Link to post
Share on other sites

While on this topic, how do i do an event callback for the new instance?

I can do it for the current scene using hou.hipFile.addEventCallback(self.some_hip_event) But been trying to add one before it loads another new instance.

Share this post


Link to post
Share on other sites
 
 
 
1
1 hour ago, younglegend said:

While on this topic, how do i do an event callback for the new instance?

I can do it for the current scene using hou.hipFile.addEventCallback(self.some_hip_event) But been trying to add one before it loads another new instance.

1) Have your code in hou.session module of the hip being opened 

2) Have your code in 123.py/456.py

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

×