Jump to content

Import hda/otl with python


An_pi

Recommended Posts

Hi,

As Dom mentioned, it's all in the docs but here's an example if needed.

# This code is the equivalent of running Assets -> Install Asset Library
hou.hda.installFile('path_to_your_hda_file_on_disk')

# Then you could create the HDA as you would normally with any other node
hda_node = hou_parent.createNode("OperatorType”, “Name”) # Operator Type is your hda type

-J

  • Thanks 1
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...