Access HDA embedded within HDA

   2387   1   1
User Avatar
Member
37 posts
Joined: Dec. 2016
Offline
Hey everyone,

I have a python script on my main HDA (wall_generator) that creates copies of another HDA (bool_setup). I'm trying to have the wall_generator work inside Unreal which I think means I need the bool_setup to be embedded in the wall_generator. I put the bool_setup HDA file in the Extra Files section of the wall_generator. I'm now trying to access the stored bool_setup but can't quite get it working.
I have:
HDA = kwargs['node']
definition = HDA.type().definition()
boolFile = definition.sections()['frame_bool_setup.hdalc'].contents()

This returns a string: INDX
Which, when I try and use in:
bool = HDA.createNode(boolFile)
Obviously doesn't work…

Any help would be greatly appreciated.

Thanks!
Ryan
Edited by canonball900 - Nov. 10, 2018 02:40:35
User Avatar
Member
3 posts
Joined: April 2017
Offline
Could you try hou.hda.installFile()? http://www.sidefx.com/docs/houdini/hom/hou/hda.html#installFile. [www.sidefx.com] I'm guessing it'll accept a filePath that points inside an HDA's sections. Just an idea.
  • Quick Links