{"id":1042,"date":"2025-10-18T16:10:36","date_gmt":"2025-10-18T23:10:36","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=1042"},"modified":"2025-10-18T16:18:59","modified_gmt":"2025-10-18T23:18:59","slug":"archived-post-by-animatrix2k7-2","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2025\/10\/18\/archived-post-by-animatrix2k7-2\/","title":{"rendered":"Archived post by animatrix2k7"},"content":{"rendered":"<div class=\"postie-post\">\n<p class=\"\">thanks man these are nice. he is using polycut, nice use case for this node<\/p>\n<p class=\"\">Anyone know the nodegraphtitle.py trick? I searched here but there is no mention of it. If you override this file in your user directory, you can have custom stats on the network editor like this (top left).<\/p>\n<p class=\"\">I use this code:<br \/>\n&#8220;`python from __future__ import print_function import hou import nodegraphprefs as prefs<br \/>\ndef networkEditorTitleLeft(editor):     try:         title = &#8216;\\n&#8217;<br \/>\n        #title += &#8220;Viewport\\n\\n&#8221;<br \/>\n        selectedNodes = hou.selectedNodes()         if len(selectedNodes) == 1 and hou.ui.updateMode() == hou.updateMode.AutoUpdate:             currentNode = selectedNodes[0]             nodePath = currentNode.path()<br \/>\n            #title += str(len(currentNode.geometry().points()))                          ptcount = int(hou.hscriptExpression(&#8220;npoints(\\&#8221;&#8221; + nodePath + &#8220;\\&#8221;)&#8221;))             primcount = int(hou.hscriptExpression(&#8220;nprims(\\&#8221;&#8221; + nodePath + &#8220;\\&#8221;)&#8221;))<br \/>\n            title += str(f'{ptcount:,}&#8217;) + &#8221; points\\n&#8221;             title += str(f'{primcount:,}&#8217;) + &#8221; prims\\n\\n&#8221;<br \/>\n             opinfo = hou.hscript(&#8220;opinfo -n &#8221; + nodePath)[0]<br \/>\n            if &#8220;Memory: &#8221; in opinfo:                 memory = opinfo.split(&#8220;Memory: &#8220;)[1].split(&#8220;\\n&#8221;)[0]                 if &#8216;;&#8217; in memory:                     # Split the text at the first &#8216;;&#8217; occurrence                     parts = memory.split(&#8216;;&#8217;, 1)                     # Rejoin with the second part encapsulated in parentheses                     memory = f&#8221;{parts[0]} ({parts[1].strip()})&#8221;                                  title += memory + &#8220;\\n&#8221;<br \/>\n            cooktime = opinfo.split(&#8220;Last Cook Time: &#8220;)[1].split(&#8220;\\n&#8221;)[0]             title += cooktime + &#8220;\\n\\n&#8221;<br \/>\n         screenbounds = editor.screenBounds()         # Figure out how much we need to scale the current bounds to get to         # a zoom level of 100 pixels per network editor unit.         bounds = editor.visibleBounds()         currentzoom = editor.screenBounds().size().x() \/ bounds.size().x()         title += &#8220;{:0.2f}%\\n&#8221;.format(currentzoom)<br \/>\n&#8220;`<\/p>\n<p class=\"\">&#8220;`python         pwd = editor.pwd()         playerparm = pwd.parm(&#8216;isplayer&#8217;)         if playerparm is not None and playerparm.evalAsInt() != 0:             title += &#8216;Network in Playback Mode\\n&#8217;         if prefs.showPerfStats(editor):             profile = hou.perfMon.activeProfile()             if profile is not None:                 profiletitle = profile.title()                 if not profiletitle:                     profiletitle = &#8216;Profile &#8216; + str(profile.id())                 title += profiletitle + &#8216;: &#8216; + prefs.perfStatName(editor)<br \/>\n    except:         title = &#8221;<br \/>\n    return title<br \/>\ndef networkEditorTitleRight(editor):     try:         title = &#8221;         pwd = editor.pwd()         title += pwd.childTypeCategory().label()<br \/>\n    except:         title = &#8221;<br \/>\n    return title &#8220;`<\/p>\n<p>Attachments in this post: <br \/><a href=\"http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20251010\/18\/25\/image.png\">http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20251010\/18\/25\/image.png<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>thanks man these are nice. he is using polycut, nice use case for this node Anyone know the nodegraphtitle.py trick? I searched here but there is no mention of it. If you override this file in your user directory, you can have custom stats on the network editor like this (top left). I use this &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2025\/10\/18\/archived-post-by-animatrix2k7-2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by animatrix2k7<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1042","post","type-post","status-publish","format-standard","hentry","category-hou-general"],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/1042","targetHints":{"allow":["GET"]}}],"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=1042"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/1042\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=1042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=1042"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=1042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}