Jump to content
An_pi

Import hda/otl with python

Recommended Posts

Posted (edited)

Hi

Is it possible to "import" an HDA from disk, via python? and how? :)
Much like we can "Import" example assets from the documentation.

Edited by An_pi

Share this post


Link to post
Share on other sites

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

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

×