git.lucas.co / hou-control
git clone https://git.lucas.co/hou-control.git

commit25287872dc9caa791f96fa86f5b187a07937b710
parent02124e7eb4
authorLucas Galante <[email protected]>
date2026-04-16 21:14
hc: fix missing NetworkShapePolygon by using lines for triangle

 python3.11libs/hc/hcnetworkeditor.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/python3.11libs/hc/hcnetworkeditor.py b/python3.11libs/hc/hcnetworkeditor.py
index 0180b74..d414be7 100644
--- a/python3.11libs/hc/hcnetworkeditor.py
+++ b/python3.11libs/hc/hcnetworkeditor.py
@@ -178,13 +178,11 @@ class HCNetworkEditor(HCPathTab):
         )
 
         color = hou.Color((0.38, 0.56, 0.56))
+        width = 2.0
         shapes = [
-            hou.NetworkShapePolygon(
-                [p1, p2, p3],
-                color=color, alpha=0.8,
-                fill_color=color, fill_alpha=0.6,
-                screen_space=True
-            )
+            hou.NetworkShapeLine(p1, p2, color=color, alpha=1.0, width=width, screen_space=True, smooth=True),
+            hou.NetworkShapeLine(p2, p3, color=color, alpha=1.0, width=width, screen_space=True, smooth=True),
+            hou.NetworkShapeLine(p3, p1, color=color, alpha=1.0, width=width, screen_space=True, smooth=True),
         ]
         ed.setOverlayShapes(shapes)