Jump to content

Get operator name to create hda


An_pi

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("???")

 

Link to comment
Share on other sites

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