Jump to content
An_pi

Get operator name to create hda

Recommended Posts

Hi.

After we install a HDA like this

hou.hda.installFile('hda_path.hda')

how is it possible to get the hda's operator name, so we can "create" it? The installFile function does not return anything...

hou.node("/obj").createNode("???")

 

Share this post


Link to post
Share on other sites
Posted (edited)

The name is the one you set when you create the .hda: The recommended syntax is NameSpace::HdaName::Version, see the docs for more info https://www.sidefx.com/docs/houdini/assets/namespaces.html

Hda_Name_Example.jpg.05649c31c4b580224f09005204221b8f.jpgHda_Name_Syntax.jpg.c4b8b9784816a199ee7613c0a30fca21.jpg

You can also get the .hda's name via the node.type().name() function. For example:

hou.node("/obj/geo/custom_hda/").type().name()

For the measure node it returns: 'measure::2.0'

To create a specific version of a node you can then type:

 hou.node("/obj/geo/").createNode("NameSpace::HdaName::1.1")

Edited by LucaScheller
  • Like 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

×