Jump to content

Python Scripting defaults on parameters on HDA


EwanW

Recommended Posts

Hi!

Was just wondering if anyone has a good way of setting defaults on an HDA through python?

Sure it must be fairly simple but I can't seem to find a specific command. Ideally it would be the same as clicking Copy defaults from node?

Thanks for any suggestions.

Link to comment
Share on other sites

The defaults are normally set with the parameter interface stuff (like a default float value or whatever other parameter). Though it's possible to do with Python as well and run it when the node is created. Can you be more specific about what you're trying to do?

 

http://www.sidefx.com/docs/houdini14.0/hom/hou/Parm

http://www.sidefx.com/docs/houdini14.0/hom/assetscripts#node_initialization_scripts

Link to comment
Share on other sites

I have a node which I am turning into an HDA with a script. I want the settings at object level to be saved as defaults as if I had used Type Properties/Save Defaults from Node.

 

I want to take the object level parameters and save them as defaults when the HDA is created.

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.

Guest
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...