検索 - User list
Full Version: Reload Recipes in 20.5?
Root » Technical Discussion » Reload Recipes in 20.5?
JohnDoe777
Hello,

I was wondering if there was a way, maybe in python that would reload the recipes? I tried reloading the Recipes.hda in the asset manager which shows the newly added recipe in it but the recipe still doesn't show. Also doesn't appear in the recipe manager.
gorrod
Hi,

For this test I saved recipes into a single HDA under ~/houdini20.5/otls/Recipes.hda, by selecting the "Save to User Preferences" preset when publishing the recipe.

It works for me across houdini sessions to use:

import os
filepath = os.path.expanduser("~/houdini20.5/otls/Recipes.hda")
if filepath in hou.hda.loadedFiles():
    hou.hda.uninstallFile(filepath)
hou.hda.installFile(filepath)
hou.hda.reloadFile(filepath)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB