Jump to content

Saving selection of nodes to a new hip file


Recommended Posts

It really depends on what you mean by a clean/new hip file.


You can use hou.copyNodesToClipboard() and hou.pasteNodesFromClipboard() to basically copy your nodes, then create a new hip and paste them into that.


If you want to basically extract them directly to a new file while maintaining the current session, that gets a lot more complicated.

Link to comment
Share on other sites

I am aware of the first method. Annoyingly the latter was what I was going for. I started off looking for an "Export selection" option under the main houdini "File" menu and was quite surprised when I didn't see one as both Maya and XSI have one.

Link to comment
Share on other sites

What about using opscript command on nodes to save them into .cmd file and source that file into new houdini session? (There is nice example of this workflow in Ari Danesh GoProcedural - Light Shade and Render lesson 10)

There is also asCode() method in python.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...