Jump to content

HDA - change 'Editable Nodes' via Python


ah-fx

Recommended Posts

Hey guys,

I am creating an HDA programmatically and I would like to set the value of 'Editable Nodes' which lives on the Node tab within Operator Type Properties. Either HDAOptions or HDADefintion.setExtraInfo() seems promising, but I have not gotten further than that. Has anyone else done this before?

Adam

Link to comment
Share on other sites

Editable nodes are stored in their own string section called EditableNodes as a space separated list of relative paths so you can basically just construct your string and add/set the contents of that section to it.

 hou.HDADefinition.addSection("EditableNodes", "foo bar/hello")

 

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