{"id":648,"date":"2023-02-16T05:55:44","date_gmt":"2023-02-16T13:55:44","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=648"},"modified":"2023-02-16T06:03:22","modified_gmt":"2023-02-16T14:03:22","slug":"archived-post-by-waffleboytom","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2023\/02\/16\/archived-post-by-waffleboytom\/","title":{"rendered":"Archived post by WaffleboyTom"},"content":{"rendered":"<div class=\"postie-post\">\n<p class=\"\">&#8220;`nodes = hou.selectedNodes()<br \/>\n#get pane             editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor)<br \/>\n#reset images<br \/>\neditor.setBackgroundImages([])<br \/>\n#get images<br \/>\nb_img = [img for img in editor.backgroundImages()]<br \/>\nfor node in nodes:          for parm in node.parms():                              if(len(parm.keyframes())>0):                                 #create image                         img = hou.NetworkImage()                             size = node.size()                          img.setRect(hou.BoundingRect(-2,-0.5,size[0],size[1]))                          img.setRelativeToPath(node.path())                                                                           img.setPath(&#8216;$SIDEFXLABS\/misc\/stickers\/emoji\/SIDEFX_CUSTOM_EMBLEMS 08.png&#8217;)                                      b_img.append(img)                                                             break              editor.setBackgroundImages(b_img)&#8220;`<\/p>\n<p class=\"\">use this one instead<\/p>\n<p class=\"\">takes the size of node in consideration<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;`nodes = hou.selectedNodes() #get pane editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) #reset images editor.setBackgroundImages([]) #get images b_img = [img for img in editor.backgroundImages()] for node in nodes: for parm in node.parms(): if(len(parm.keyframes())>0): #create image img = hou.NetworkImage() size = node.size() img.setRect(hou.BoundingRect(-2,-0.5,size[0],size[1])) img.setRelativeToPath(node.path()) img.setPath(&#8216;$SIDEFXLABS\/misc\/stickers\/emoji\/SIDEFX_CUSTOM_EMBLEMS 08.png&#8217;) b_img.append(img) break editor.setBackgroundImages(b_img)&#8220;` use this one instead takes the size of node in consideration<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/648"}],"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=648"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/648\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=648"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}