Jump to content

Make non-HDA out of an HDA instance?


Krion

Recommended Posts

Hi guys,

 

Was wondering how you can convert an object HDA instance into a normal object node?

So the parameters become normal spare parameters, thus editable in Edit Parameter Interface instead of Type Properties.

Would like to keep the keyframes and all in tact, so basically disconnect the instance from the HDA.

Thanks for the help

 

-

Edited by Krion
Link to comment
Share on other sites

You'll need to use Python for that. You should get most of it working with a few steps:

- create an empty subnet
- copy all the parms from the OTL to your subnet with parmTemplateGroup

uiparms = sourcenode.parmTemplateGroup()
destinationnode.setParmTemplateGroup(uiparms)

- copy all the nodes from your OTL to your subnet with hou.copyNodesTo()
- to copy the keyframes, you have parm.keyframes() and parm.setKeyframes()

hope that helps
 

Link to comment
Share on other sites

  • 2 weeks later...

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