Archived post by JeffLMnT

was curious to see if the loop idea was just something I pulled out of my ass — and its not! lol

here’s the same applied in a loop and driven with a multiparm – @flight404

you can probably also add a switch and promote it as a toggle

and use the to enable/disable conditions

Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20231505/07/23/stack_vex_conditions_loop.hiplc
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20231505/07/23/image.png

Archived post by Ambrosiussen

You can actually drive all parms automatically on a node with the dictionary generated from attribfromparms

No python needed

1 Create a detail dict using attribfromparms called `parms` with parameter values. (Name is important) 2 Create a spare input on the node which you want to drive the parms for. Set itโ€™s value to be the node you have your parms dict attribute on. 3 Create an integer parm called `spare_parminputindex` and set it to -1 (to point at the spare input connection)

Profit!

Archived post by WaffleboyTom

someone said , group + blast is much faster than an if statement + “removepoint()“ so I ran some tests (20 million points) and it is indeed true, although the absolute fastest is grouping using an integer attribute instead then doing “ @my_attrib>0“ in the blast (0.174 seconds compared to 1.594 for “if + removepoint()“, maybe this is helpful to someone ๐Ÿ˜„

Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20230002/25/23/image.png
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20230002/25/23/removepoint_blast_comparison.hiplc

Archived post by WaffleboyTom

“`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(‘$SIDEFXLABS/misc/stickers/emoji/SIDEFX_CUSTOM_EMBLEMS 08.png’) b_img.append(img) break editor.setBackgroundImages(b_img)“`

use this one instead

takes the size of node in consideration