Benedikt Roettger

gorrod

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

point insertion on existing prims - best method? Aug. 17, 2025, 7:16 a.m.

Here's an approach getting the primuvs of the non fractured primitives for the newly created points and rebuilding the unfractured polygons with it.

I'm not sure what your exact usecase is without a basic example file, but this could be a solution for your drawing.

Save Decoration Recipe with Python Aug. 14, 2025, 7:29 p.m.

Hi,
It does not seem to be in the hou.data documentation but you need to set the dict values of "target_children" and "target_editables" to True, "central_children" and "central_editables" has no effect.

Like so:
sel = hou.selectedItems()
node = sel[0]

opts = {
    "name": "sop/ropnet::test:testRecipe",
    "label": "TestRecipe",
    "central_node": node,
    "target_children": True,
    "target_editables": True,
    "decorator_items": sel,
    "children": True,
    "location": "C:/Users/Gorrod/Documents/houdini20.5/otls/Recipes.hdanc"    
}

hou.data.saveDecorationRecipe(**opts)

You can take a look at the scripts for the recipe creation and their UI under e.g:
C:\Program Files\Side Effects Software\Houdini 20.5.474\houdini\python3.11libs\hrecipes
This specific issue might come from line 186/187 in
C:\Program Files\Side Effects Software\Houdini 20.5.474\houdini\python3.11libs\hrecipes\core\networkcluster.py


Might be worth making an RFE to sideFX to adjust the documentation.

How to find all children's of a "joint" ? Jan. 9, 2025, 5:58 p.m.

You could include the kinefx_hierarchy.h file and use the getchildren function to get immediate children or getdescendants to get all descendents.

#include <kinefx_hierarchy.h>

i[]@children = getchildren(0, @ptnum);
int maxdepth = 1000;
i[]@descendants = getdescendants(0, @ptnum, maxdepth);

This header file and other useful kinefx functions should be found here $HFS/packages/kinefx/vex/include