younglegend Posted November 26, 2019 Share Posted November 26, 2019 How do you load a new instance of houdini from current scene's shelf tool? hou.hipFile.load(path) loads to current scene. Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted November 26, 2019 Share Posted November 26, 2019 import subprocess subprocess.Popen(['houdini', '/path/to/scene.hip']) 1 Quote Link to comment Share on other sites More sharing options...
younglegend Posted November 26, 2019 Author Share Posted November 26, 2019 Awesome. Thank you! Quote Link to comment Share on other sites More sharing options...
younglegend Posted November 27, 2019 Author Share Posted November 27, 2019 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. Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted November 27, 2019 Share Posted November 27, 2019 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.