Reload Recipes in 20.5?

   315   1   1
User Avatar
Member
49 posts
Joined: Dec. 2014
Offline
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.
User Avatar
Member
34 posts
Joined: Nov. 2016
Offline
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)
  • Quick Links