SideFX Houdini customization package
git clone https://git.lucas.co/hou-control.git
hc: stop the im_ramp_color preset menu raising on every cook
The Preset parameter on the im_ramp_color::1.0 node embedded inside
developer_surface_remesh ran `menu = hou.phm().makeMenu(kwargs)`, but that
embedded definition has no PythonModule section, so every cook raised
AttributeError: 'module' object has no attribute 'makeMenu'. Headless that is
a printed traceback; in the GUI it is a modal error dialog, which blocks
Houdini's main thread and strands the hrpyc bridge until it is dismissed.
The menu script now reads `menu = []`, padded to the original 33 bytes so
every length prefix in the surrounding Contents archive stays valid. The edit
was made with hotl -X / -c rather than through HOM: the child definition
lives in the parent's Contents section, and neither HDADefinition.addSection
plus updateFromNode nor the Type Properties dialog carries a change there
into the otl -- both rewrite the file while re-embedding the original child.
Behaviour is unchanged. preset already evaluated to -1 against an empty menu,
because the raising script yielded no items either; that was confirmed by
evaluating it against both the old and new asset. Remesh output is identical
(92 -> 153 / 1442 / 5747 points at targetsize 0.3 / 0.1 / 0.05), menu-script
errors on cook drop from 1 to 0 and on menuItems from 2 to 0 in fresh
processes, and tools/check.py passes 37/37.
Co-Authored-By: Claude Opus 5 <[email protected]>
...sop_lsgalante.developer_surface_remesh.1.0.hdalc | Bin 44857 -> 44477 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/otls/sop_lsgalante.developer_surface_remesh.1.0.hdalc b/otls/sop_lsgalante.developer_surface_remesh.1.0.hdalc
index 5ba74d8..a6e2d81 100644
Binary files a/otls/sop_lsgalante.developer_surface_remesh.1.0.hdalc and b/otls/sop_lsgalante.developer_surface_remesh.1.0.hdalc differ