Alexis Baudoin

DrWeeny

About Me

Connect

LOCATION
London, Not Specified
WEBSITE

Houdini Skills

ADVANCED
Hair & Fur  | Cloth
INTERMEDIATE
Muscles  | Python
BEGINNER
VEX

Availability

I am currently employed at Freelance

Recent Forum Posts

Save Decoration Recipe with Python Aug. 15, 2025, 8:35 a.m.

Thanks you so much.
I've tried it today and it worked perfectly !
I've taken a look to the Enum in hrecipes like you suggested, I'm not sure why the post-process is not triggered. I will look at RFE, I never did one, it seems central_node and anchor_node are supposed to be good.
Anyway thanks a lot ! It is my first deving in houdini and it didn't come tome to look at the .py

Save Decoration Recipe with Python Aug. 14, 2025, 11:01 a.m.

Hello !
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 !