Houdini embed external obj in HDA

   3832   6   2
User Avatar
Member
1 posts
Joined: March 2021
Offline
Hello all!

I want to embed an external obj file in Houdini digital asset. Tried a few methods including add file in Edit Operator Type Properties. However, the saved .hdalc file is still empty. Any idea why and how can I fix this? Thank you!
User Avatar
Member
141 posts
Joined: March 2016
Offline
Hello - I was just doing exactly this today.
As you suggest you first add the file to the 'Type Properties' 'Extra Files' tab.
Then you need to go to your references on the import/file node and change from the folder or $HIP location to
opdef:../..?

So for example if it were a file node that linked to the obj model
$HIP/modelfolder/modelname.obj
you would change it to
opdef:../..?modelname.obj

https://www.sidefx.com/docs/houdini/assets/opdef.html [www.sidefx.com]

and if you have a whole load of these then you can do it automatically in the textport -
https://www.sidefx.com/forum/topic/84427/ [www.sidefx.com]
https://www.jamesrobinsonvfx.com/tips/workflow/2021/03/26/opchange/ [www.jamesrobinsonvfx.com]
Love Houdini
User Avatar
Member
67 posts
Joined: May 2019
Offline
Adding this just for the sake of visual clarity for future googlers about what Hatchery already said.

Attachments:
embedded_fbx_into_hda.png (563.1 KB)

Generalist.
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
User Avatar
Member
38 posts
Joined: Nov. 2012
Offline
Hatchery & AnimGraphLab thank you very much, most impressive.
Artur Mandas

Artist & Developer
http://arturmandas.com [arturmandas.com]
User Avatar
Member
1185 posts
Joined: April 2017
Offline
Thanks for all the info but it's not working on my side. Any clue why?

Attachments:
Houdini_HDA_embed_geo_01.jpg (187.7 KB)

User Avatar
Member
86 posts
Joined: April 2013
Offline
Youtube: "Houdini Foundations | Rig Fur Dude with KineFX 8 | Create Capture Rig Digital Asset"

Step by step instructions to embed geometry into your digital asset starts at 5:00 ish.
"Genius might be the ability to say a profound thing in a simple way." — Charles Bukowski
User Avatar
Member
1185 posts
Joined: April 2017
Offline
OOOOOHHHHHHHHHHHHHHHH!!! I was missing some important infos. This video fixed that, thank your very, very much!

For anybody doing this, when you add the geo files (Type Properties -> Extra Files -> Add File), it acctually copies the file to a Houdini folder. (installion folders, maybe, not sure...)

When you want to replace the file path in your HDA to the new copied file I just talked about, you should do it from the File sop browser by clicking on the opdef:/ shortcut (on the left side). If your HDA was created at SOP level, browse inside the Sop folder. You should find a folder with the exact name of your HDA. That's where you'll find the file!

EDIT: My method gives me this:opdef:/Sop/Oli_Roof_Tilling?TempleTiles.bgeo but I was told to use opdef:..?TempleTiles.bgeo instead.

You can follow the tutorial EZiniT talked about here. Its in the section 8 (Create Capture Rig Digital Asset) at the 5 minute mark.
https://www.sidefx.com/tutorials/foundations-rig-fur-dude-with-kinefx/
[www.sidefx.com]
Edited by olivierth - Jan. 7, 2026 15:59:52

Attachments:
Houdini_HDA_embed_geo_02.jpg (174.0 KB)

  • Quick Links