{"id":1139,"date":"2026-06-30T12:07:27","date_gmt":"2026-06-30T19:07:27","guid":{"rendered":"https:\/\/fx-td.com\/houdiniandchill\/?p=1139"},"modified":"2026-06-30T12:08:15","modified_gmt":"2026-06-30T19:08:15","slug":"archived-post-by-flakypastries-3","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2026\/06\/30\/archived-post-by-flakypastries-3\/","title":{"rendered":"Archived post by flakypastries"},"content":{"rendered":"<div class=\"postie-post\">\n<p class=\"\">&#8220;`py<br \/>\ndef wrap_in_network_box(     nodes: list[hou.Node],     name: str | None = None,     comment: str | None = None,     color: hou.Color | None = None,     ) -&gt; hou.NetworkBox | None:     &#8220;&#8221;&#8221;Wraps nodes in a network box sized to fit them.     Args:         nodes: Nodes to enclose. Must share the same parent.         name: Optional box name. Auto-generated if omitted.         comment: Optional comment shown in the box header.         color: Optional box color.     Returns:         The created network box, or None if nodes is empty.     Raises:         ValueError: If nodes do not share a common parent.     &#8220;&#8221;&#8221;     if not nodes:         return None     parent = nodes[0].parent()     if any(n.parent() != parent for n in nodes):         raise ValueError(&#8220;All nodes must share the same parent.&#8221;)     box = parent.createNetworkBox(name)     for node in nodes:         box.addNode(node)     if comment:         box.setComment(comment)     if color:         box.setColor(color)     box.fitAroundContents()     return box<br \/>\n # Wrap the current selection: wrap_in_network_box(hou.selectedNodes(), comment=&#8221;My group&#8221;)&#8220;`<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;`py def wrap_in_network_box( nodes: list[hou.Node], name: str | None = None, comment: str | None = None, color: hou.Color | None = None, ) -&gt; hou.NetworkBox | None: &#8220;&#8221;&#8221;Wraps nodes in a network box sized to fit them. Args: nodes: Nodes to enclose. Must share the same parent. name: Optional box name. Auto-generated if omitted. &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2026\/06\/30\/archived-post-by-flakypastries-3\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by flakypastries<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/1139"}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=1139"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/1139\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=1139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=1139"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=1139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}