shadowst17 Posted June 19, 2019 Share Posted June 19, 2019 (edited) Hi guys, Is there a way through Python to import a file(not sure which type) that has a bunch of nodes already fully set up and can placed inside a pre-defined location? I can't use digital asset due to pipeline reasons so what ever it reads needs to be imported RAW with no connections to outside dependencies. Edited June 19, 2019 by shadowst17 Solved Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted June 19, 2019 Share Posted June 19, 2019 You can merge hip files with hou.hipFile.merge https://www.sidefx.com/docs/houdini/hom/hou/hipFile.html 1 Quote Link to comment Share on other sites More sharing options...
anim Posted June 19, 2019 Share Posted June 19, 2019 you can use: hou.Node.saveItemsToFile() hou.Node.loadItemsFromFile() it's similar to copy/paste but you can choose the location of CPIO file 1 Quote Link to comment Share on other sites More sharing options...
shadowst17 Posted June 19, 2019 Author Share Posted June 19, 2019 24 minutes ago, anim said: you can use: hou.Node.saveItemsToFile() hou.Node.loadItemsFromFile() it's similar to copy/paste but you can choose the location of CPIO file Can I control where those items from the file end up or will they be imported into whatever my current node network location is? Quote Link to comment Share on other sites More sharing options...
anim Posted June 19, 2019 Share Posted June 19, 2019 (edited) they'll end up under the node you are calling the function from, like help says Quote Load the contents of a file (saved with hou.Node.saveItemsToFile()) into the contents of this node. Edited June 19, 2019 by anim 1 Quote Link to comment Share on other sites More sharing options...
shadowst17 Posted June 19, 2019 Author Share Posted June 19, 2019 1 minute ago, anim said: they'll end up under the node you are calling the function from, like help says Ah yes sorry! Don't know what I was thinking. Thank you for your help! 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.