Jump to content

Recommended Posts

I am making a cross user copy/paste function using node.asCode(). My script works as is except that it will not retain paint node user information. Has anyone come across this issue or have an idea how to get around it? Thanks!

Share this post


Link to post
Share on other sites

as code doesn't save geometry delta of the nodes with internal cache

much more robust workflow would be using

hou.Node.saveItemsToFile() or hou.Node.saveChildrenToFile()

and

hou.Node.loadItemsFromFile() or hou.Node.loadChildrenFromFile()

 

which will store them as cpio files the same way as houdini's copy/paste system works

  • Thanks 1

Share this post


Link to post
Share on other sites
48 minutes ago, anim said:

as code doesn't save geometry delta of the nodes with internal cache

much more robust workflow would be using

hou.Node.saveItemsToFile() or hou.Node.saveChildrenToFile()

and

hou.Node.loadItemsFromFile() or hou.Node.loadChildrenFromFile()

 

which will store them as cpio files the same way as houdini's copy/paste system works

This is great! Thanks for the advice.

Share this post


Link to post
Share on other sites
On 10/10/2019 at 9:11 PM, anim said:

as code doesn't save geometry delta of the nodes with internal cache

much more robust workflow would be using

hou.Node.saveItemsToFile() or hou.Node.saveChildrenToFile()

and

hou.Node.loadItemsFromFile() or hou.Node.loadChildrenFromFile()

 

which will store them as cpio files the same way as houdini's copy/paste system works

Tomas, you deserve a couple of medal for your overall contribution on this forum :) 

Happy new year mate and cheers :)

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

×