I've recently join a gig where I have to think about hda management and I was looking at the new recipe tool in houdini.
After a test with the ui, I've started to figure out how I could do it in python but I can't reproduce the ui result.
basically for my first test, I wanted to provide a basic ropnetwork
in order to have a decoration option, I've created a network box, I select both use the ui and boom, everything works.
Now I have written this test script :
import hou my_sel = hou.selectedItems() # generic_tags: Sequence[hou.NetworkItem]=None ??? options= { "name" : "sop/ropnet::drwee::test", "label" : "cfx_ropnet_test", "location" : "C:/Users/DrWee/OneDrive/Documents/houdini20.5/otls/Recipes.hdanc", "central_node" : hou.item('/obj/my_char/my_ropnet'), "decorator_items" : my_sel, "nodetype_patterns" : "Sop/ropnet", "comment" : "", "generic_tags":my_sel, # options from correct json done with ui : "nodes_only": False, "central_children": True, "children": True, "central_editables": True, "editables": True, "flags": False, "parms": True, "parms_as_brief": True, "evaluate_parmvalues": False, "parmtemplates": "spare_only", "metadata": False, "verbose": False } hou.data.saveDecorationRecipe(**options) # save_version_recipe(my_sel[1], "sop/ropnet::drwee::test", 1.0)
the script seems to work and save a new recipe :
but when I try to apply it, it only creates the box and spare params on the node itself. All children are ignored.
Anyone has tried to create a decoration recipe with python ? is there a parameter in the command I didn't fill correctly ?
Thanks a lot !