Currently trying to figure out how to setup a project-based HDA so a multiple people can use it easily. Based on the official documentation [www.sidefx.com], defining $JOB in a .hip file should automatically load any HDAs that are in the $JOB/hda folder.
So far I haven't managed to get them show up - repeatedly tried opening/closing Houdini and created a bunch of different hda's to test. File paths are loading fine via $JOB so that is defined correctly.
Any ideas appreciated!
$JOB/hda and $HIP/hda don't correctly load HDAs
1128 8 0- axelschoterman
- Member
- 8 posts
- Joined: June 2018
- Offline
- viklc
- Member
- 143 posts
- Joined: May 2017
- Offline
- axelschoterman
- Member
- 8 posts
- Joined: June 2018
- Offline
Thanks! That seemed to work halfway, but $JOB still isn't working correctly. It seems like $HIP/otls works, but $JOB/otls still doesn't load anything. Meaning that if my .hip file is in a deeper directory for example, it stops finding the HDA in my tab menu.
In my example, my directory looks like this:
$JOB/otls
$JOB/projects/xxx.hip
Which still isn't finding anything, but it should right?
In my example, my directory looks like this:
$JOB/otls
$JOB/projects/xxx.hip
Which still isn't finding anything, but it should right?
- jsmack
- Member
- 7803 posts
- Joined: Sept. 2011
- Offline
axelschoterman
Thanks! That seemed to work halfway, but $JOB still isn't working correctly. It seems like $HIP/otls works, but $JOB/otls still doesn't load anything. Meaning that if my .hip file is in a deeper directory for example, it stops finding the HDA in my tab menu.
In my example, my directory looks like this:
$JOB/otls
$JOB/projects/xxx.hip
Which still isn't finding anything, but it should right?
I don't think $JOB is added to the Houdini path, so that won't work.
- axelschoterman
- Member
- 8 posts
- Joined: June 2018
- Offline
- jsmack
- Member
- 7803 posts
- Joined: Sept. 2011
- Offline
axelschoterman
I was thinking it should work out of the box considering that's what on the documentation - plus the project creation window includes a hda folder by default.
looks like it is added to the path. I'd tried it before without it working, but it does work now. placing and hda in the otls folder in $JOB is adding it to the scan path in my test-which isn't a behavior I'd want as I don't use $JOB.
- axelschoterman
- Member
- 8 posts
- Joined: June 2018
- Offline
Hmm okay thanks for trying - I wonder why it's not working for me. Is your .hip file in a lower directory too?
I found that HDAs aren't unloaded during a session - so if they are loaded once (for example via $HIP/otls) and then you switch to a different .hip file in a different location, it will still keep it loaded until you restart.
I found that HDAs aren't unloaded during a session - so if they are loaded once (for example via $HIP/otls) and then you switch to a different .hip file in a different location, it will still keep it loaded until you restart.
- jsmack
- Member
- 7803 posts
- Joined: Sept. 2011
- Offline
axelschoterman
Hmm okay thanks for trying - I wonder why it's not working for me. Is your .hip file in a lower directory too?
I found that HDAs aren't unloaded during a session - so if they are loaded once (for example via $HIP/otls) and then you switch to a different .hip file in a different location, it will still keep it loaded until you restart.
I didn't open a hip file. $JOB is set to the home directory when starting Houdini for me. so I put otls in my home directory and they were found on startup. I very much dislike this behavior as it's a major security hole as houdini auto runs scripts in the path.
yes, houdini does not unload anything.
- viklc
- Member
- 143 posts
- Joined: May 2017
- Offline
axelschoterman
In my example, my directory looks like this:
$JOB/otls
$JOB/projects/xxx.hip
The HIP files belong in the root directory, what you use is already the project itself. Once you nest the HIP files, access to the hdas will no longer be valid. (There might be a workaround, since access to the $JOB variable remains. But the hdas are not recognized this way.)
$JOB/otls/asset.hda $JOB/file.hip
For me, the preflight is green for both HIP and JOB. (Using otls).
Edited by viklc - March 30, 2023 15:29:00
-
- Quick Links