$JOB and HDA

   1835   2   2
User Avatar
Member
3 posts
Joined: Aug. 2018
Offline
How do I get Houdini to automatically load HDAs that are in directory $JOB/hda?
I attempted using houdini.env like this:

HOUDINI_ACCESS_METHOD = 2
HOUDINI_PATH = "$HOUDINI_PATH;C:/Users/User/AppData/Local/Thinkbox/Deadline10/submitters/HoudiniSubmitter;$JOB;&"
HOUDINI_MENU_PATH = "$HOUDINI_MENU_PATH;C:/Users/User/AppData/Local/Thinkbox/Deadline10/submitters/HoudiniSubmitter;&"
HOUDINI_OTLSCAN_PATH = "$HOUDINI_OTLSCAN_PATH;$JOB/hda;&"

It did not work.
User Avatar
Member
7740 posts
Joined: Sept. 2011
Offline
that houdini.env is all messed up.
The ‘&’ at the end already means appending the default path. Prepending the path with ‘$HOUDINI_PATH’ or ‘$HOUDINI_OTLSCAN_PATH’ is redundant.

$HIP/otls should already be in scan path.

I don't think you can use $JOB as a scan path, because Houdini doesn't set $JOB before it opens. You can set a custom env variable in the environment used to open Houdini, that should work as part of a scan path. For example, in the shell or batch script used to open houdini, set MYJOB=C:/path/to/job, then put HOUDINI_OTLSCAN_PATH="$MYJOB/hda;&"in the houdini.env

https://www.sidefx.com/docs/houdini/basics/config.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/basics/config_env.html [www.sidefx.com]
User Avatar
Member
16 posts
Joined: Oct. 2018
Offline
It sort of works, but you have to name the folder $JOB/otls Then you have to set the project, save your file and reopen it. It's probably easier to create a simple package now...
  • Quick Links