Saving Recipies to Directory on HOUDINI_PATH Not Working

   1644   11   3
User Avatar
Member
35 posts
Joined: 6月 2021
Offline
I may be doing something incorrectly but when I try to save a recipe as a tool on the Custom File Path and select a directory I know for certain is on HOUDINI_PATH the dialog says 'Save directory is not on the Houdini path, this preset will not be installed automatically on startup. And, of course, the tool is not available on the next Houdini start.

If I save using the 'User Preferences' option, which is not on the HOUDINI_PATH, no warning and the tool is available after a Houdini restart.

I'd like to save my recipes in various directories in my file system, for organizational purposes. I would, of course, include these directories on HOUDINI_PATH.

Am I missing something?

MacOS Sonoma.

Thanks,
Greg
Edited by GregBollella - 2024年7月31日 13:43:14
User Avatar
スタッフ
445 posts
Joined: 2月 2018
Offline
The dialog looks under the hda and otls folders included in HOUDINI_PATH. If you path is not found there, an error message is issued. Make sure the selected path is under HOUDINI_PATH first, if the bug is still showing up, file a bug with the steps to reproduce please.
User Avatar
Member
35 posts
Joined: 6月 2021
Offline
Ah, ok, I understand. It works now. I was trying to use a directory somewhere else, i.e., not under otls or hda.

I was trying to put them under an arbitrary path so that I would not have to change things when upgrading to a new version.

Thanks!,
Greg
User Avatar
Member
9 posts
Joined: 8月 2018
Offline
That is something that I would be interested in too. Being able to save recipies in a custom directory, and set a custom path to load them, so that they would be installed on startup, just to be able to store recipies for upcoming versions of Houdini.
Would be great !
User Avatar
スタッフ
445 posts
Joined: 2月 2018
Offline
folpatte
That is something that I would be interested in too. Being able to save recipies in a custom directory, and set a custom path to load them, so that they would be installed on startup, just to be able to store recipies for upcoming versions of Houdini.
Would be great !
Try installing your recipe file with a package to load your recipes in Houdini.
E.g.
{
   "hpath": "/var/tmp/myrecipes"
}

The recipe file must be located here
/var/tmp/myrecipes/otls/myrecipe.hda

In the next 20.5 production build, you'll be able to set a custom recipe path with HOUDINI_CUSTOM_RECIPE_DIR.
E.g.
{
   "hpath": "/var/tmp/myrecipes",
    "env" : [
        {"HOUDINI_CUSTOM_RECIPE_DIR": "/var/tmp/myrecipes"},
        {"HOUDINI_CUSTOM_RECIPE_LIBRARY": "myrecipe"}
    ]
}

The recipe dialogs will lock their save directory location to HOUDINI_CUSTOM_RECIPE_DIR
User Avatar
Member
3 posts
Joined: 6月 2020
Offline
mabelzile
{
"hpath": "/var/tmp/myrecipes",
"env" : [
{"HOUDINI_CUSTOM_RECIPE_DIR": "/var/tmp/myrecipes"},
{"HOUDINI_CUSTOM_RECIPE_LIBRARY": "myrecipe"}
]
}


how do you set it up, pretty boob here. Do you mind giving more detail like what file goes where?
and also what if I want to save on D: drive (D/lib/houdini)?
User Avatar
スタッフ
445 posts
Joined: 2月 2018
Offline
Rifs
mabelzile
{
"hpath": "/var/tmp/myrecipes",
"env" : [
{"HOUDINI_CUSTOM_RECIPE_DIR": "/var/tmp/myrecipes"},
{"HOUDINI_CUSTOM_RECIPE_LIBRARY": "myrecipe"}
]
}


how do you set it up, pretty boob here. Do you mind giving more detail like what file goes where?
and also what if I want to save on D: drive (D/lib/houdini)?

The above JSON package file setups a custom recipe folder "/var/tmp/myrecipes" with the recipe file name "myrecipe" as a custom library name, so all recipes saved with the recipe dialogs will be located in "/var/tmp/myrecipes/otls/myrecipe.hda". On startup Houdini will load the package along with "myrecipe.hda". The package file should go under your <user folder>/packages, In your case just swap "/var/tmp/myrecipes" with "D:/lib/houdini" as the custom recipe dir.

Check out the documentation for more details about these env vars and packages.
User Avatar
Member
696 posts
Joined: 8月 2013
Offline
Hi. Just to check is hpath the same as HOUDINI_PATH and if not what are the differences?

Also I noticed your hpath comes before env. Does it have to be like this? Im currently adding it to our json file which right now looks like this (thanks for any advice in advance!!


{
"env":[
{
"HOUDINI_ACCESS_METHOD" : "3"
},
{
"PDG_USE_PDGNET" : "0"
},
{
"HOUDINI_NO_LEGACY_MENUS" : "1"
},
{
"HOUDINI_DSO_ERROR": "0"
},
{
"HOUDINI_PACKAGE_VERBOSE": "1"
},
{
"HOUDINI_BUFFEREDSAVE": "1"
},
{
"HOUDINI_PATH": "P:/all_work/shared/scripts/Houdini/apexgraph"
},
{
"HOUDINI_PATH": "C:/Docs/houdini20.0/lighter-main"
},
{
"HOUDINI_OTLSCAN_PATH" : "C:/Docs/houdini20.0/olts"
},
{
"HOUDINI_OTLSCAN_PATH" : "P:/all_work/shared/scripts/Houdini/otls"
},
{
"HOUDINI_TOOLBAR_PATH": "C:/Docs/houdini20.0/toolbar"
},
{
"HOUDINI_DESKTOP_DIR": "C:/Docs/houdini20.0/desktop"
},
{
"HOUDINI_USER_PREF_DIR": "C:/Docs/shared_content"
},
{
"KARMA_XPU_MAX_TEXTURE_RES" : "8192"
},
{
"KARMA_XPU_MAX_UDIM_U" : "90"
},
{
"KARMA_XPU_MAX_UDIM_V" : "90"
},
{
"hpath": "P:/all_work/shared/scripts/Houdini/recipes",
{"HOUDINI_CUSTOM_RECIPE_DIR": "P:/all_work/shared/scripts/Houdini/recipes"}, {"HOUDINI_CUSTOM_RECIPE_LIBRARY": "customRecipes"}
]

],

}
Edited by Mark Wallman - 2024年9月6日 11:47:08
User Avatar
スタッフ
445 posts
Joined: 2月 2018
Offline
The hpath keyword is a shortcut for HOUDINI_PATH. You can just remove hpath and use HOUDINI_PATH instead.
User Avatar
Member
696 posts
Joined: 8月 2013
Offline
Thanks!
User Avatar
Member
3 posts
Joined: 4月 2019
Offline
Hi everyone,

I’m trying to load my Houdini recipes from a custom Google Drive folder, but I can’t tell if Houdini is recognizing the setup. The Mops.json file in the packages folder is working fine; it’s just this custom directory that’s giving me trouble.

Here’s what I’m using:

json
Copy code
{
"HOUDINI_PATH": "j:/My Drive/Houdini_Recipes",
"env": [
{"HOUDINI_CUSTOM_RECIPE_DIR": "j:/My Drive/Houdini_Recipes"},
{"HOUDINI_CUSTOM_RECIPE_LIBRARY": "myrecipe"}
]
}
I’ve tried adjusting to forward slashes, but still no luck. Does anyone know if HOUDINI_CUSTOM_RECIPE_DIR is valid for loading recipes, or have advice on getting custom paths to work?

Thanks!
User Avatar
スタッフ
445 posts
Joined: 2月 2018
Offline
Thomas M
Hi everyone,

I’m trying to load my Houdini recipes from a custom Google Drive folder, but I can’t tell if Houdini is recognizing the setup. The Mops.json file in the packages folder is working fine; it’s just this custom directory that’s giving me trouble.

Here’s what I’m using:

json
Copy code
{
"HOUDINI_PATH": "j:/My Drive/Houdini_Recipes",
"env": [
{"HOUDINI_CUSTOM_RECIPE_DIR": "j:/My Drive/Houdini_Recipes"},
{"HOUDINI_CUSTOM_RECIPE_LIBRARY": "myrecipe"}
]
}
I’ve tried adjusting to forward slashes, but still no luck. Does anyone know if HOUDINI_CUSTOM_RECIPE_DIR is valid for loading recipes, or have advice on getting custom paths to work?

Thanks!
What is the issue exactly ?

j:/My Drive/Houdini_Recipes/otls/myrecipe.hda should be listed in the Recipe Manager unless the package is not loading for some reason.

Does j:/My Drive/Houdini_Recipes/otls/myrecipe.hda exist on disk ?
  • Quick Links