kiryha Posted February 22, 2019 Share Posted February 22, 2019 (edited) In a blank scene create geometry node, select geo, run the code: import hou sceneRoot = hou.node('/obj/') sel = hou.selectedNodes() sceneRoot.saveItemsToFile(sel, 'C:/temp/test.hipnc') Loading this file gives an error: Wired... it was working before! Edited March 21, 2019 by kiryha Quote Link to comment Share on other sites More sharing options...
kiryha Posted February 25, 2019 Author Share Posted February 25, 2019 Maybe it should not work if you try to load the exported file via the menu (File> Open) Cos its working if I load it via Python: import hou sceneRoot = hou.node('/obj/') sceneRoot.loadItemsFromFile('C:/temp/test.hipnc') Quote Link to comment Share on other sites More sharing options...
animknight Posted February 26, 2019 Share Posted February 26, 2019 I was testing this and running into the same error. It's weird why Houdini wouldn't allow us to open a proper hip file. May be it's meant to be like that but it could be misleading at times. Anyway good to know. Thanks! Quote Link to comment Share on other sites More sharing options...
kiryha Posted March 21, 2019 Author Share Posted March 21, 2019 How can I get the list of objects in the scene after I import something from a file? Get list before, get list after, subtract. Any better options? 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.