Hello,
Just in case, you can set Network View to Treeview mode and multiselect.
peteski
I get that it's probably a deceivingly tricky thing to achieve due to the nature of Houdini but, maybe they could do it by allowing you to multi select a few edit nodes and edit them at once?
#Get all nodes under the current selection ChildSOPs = [] for node in hou.selectedNodes(): for child in node.allSubChildren(): ChildSOPs.append(child) #Make a list of unique types seen = set() UniqueSOPs = [] UniqueSOPsSorted = [] for SOP in ChildSOPs: if SOP.type().name() not in seen: UniqueSOPs.append(str(SOP.type().name())) seen.add(SOP.type().name()) #Added this to allow Object Level nodes to be selected SelectedNodes = [] for node in hou.selectedNodes(): SelectedNodes.append(node) if node.type().name() not in seen: UniqueSOPs.append(str(node.type().name())) seen.add(node.type().name()) #Choose the node type you want to edit UniqueSOPsSorted = sorted(UniqueSOPs,key=str.lower) input = hou.ui.selectFromList(UniqueSOPsSorted, message="Select Node Type!") if (len(input) == 0): print "Cancelled" else: #Multi Select the nodes! for SOP in ChildSOPs: if (UniqueSOPsSorted[input[0]] == SOP.type().name()): SOP.setSelected(True,False) for OBJ in SelectedNodes: if (UniqueSOPsSorted[input[0]] == OBJ.type().name()): OBJ.setSelected(True,False)
OdFotanThis is very handy and interesting! But it not work in 19.5 python 3.9. If you have time, can you adopt it to the new python please.
Thanks for sharing,
I worked on some code the last days to adres my specific problem. (mentioned in the link beneath)
I used viewer states and node event callbacks, if anyone is interested:Image Not Found
https://forums.odforce.net/topic/45970-edit-multiple-geo [forums.odforce.net]’sedit-sops-of-a-network-at-the-same-time