Possible to edit multiple objects at same time?
53970 28 9- julca
- Member
- 219 posts
- Joined: Oct. 2015
- Offline
- toonafish
- Member
- 475 posts
- Joined: March 2014
- Offline
- toonafish
- Member
- 475 posts
- Joined: March 2014
- Offline
- OdFotan
- Member
- 192 posts
- Joined: April 2015
- Offline
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?
Agree,
If you can select a node and edit it, you should be able to select multple nodes, have multiple handles shown and edit them as if you did sequentially select and edit them.
That it keeps track of which handle belongs to which node,
the thing that would make it complicated is that the Edit SOP is not edited by the Handle Tool (Enter), but the select tool, so maybe make the select tool work as an ‘extension’ of the handle tool for nodes that require the select tool as their main feature.. in this way the select tool becomes an kind of handle?
just some thoughts
Edited by OdFotan - May 20, 2020 06:03:09
- anon_user_89151269
- Member
- 1755 posts
- Joined: March 2014
- Offline
I'm suspecting that this is a tricky thing to implement because one can't dive in at SOP lvl for multiple objs at once, currently. And this is what's actually required in order to edit two or more objs at once, essentially.
It may be the case that a fundamental change in the way Houdini works, has to be made in order to have this feature, hence its absence thus far.
Hopefully a dev will join this thread and clarify this for us.
It may be the case that a fundamental change in the way Houdini works, has to be made in order to have this feature, hence its absence thus far.
Hopefully a dev will join this thread and clarify this for us.
Edited by anon_user_89151269 - May 21, 2020 10:26:10
- peteski
- Member
- 518 posts
- Joined: Dec. 2013
- Offline
You can actually edit multiple sop nodes at once but it's something that is particularly easy. No idea why because it's really handy.
Here's my toolbar for that in case anyone is interested -
Here's my toolbar for that in case anyone is interested -
#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)
Edited by peteski - July 2, 2020 03:00:50
- OdFotan
- Member
- 192 posts
- Joined: April 2015
- Offline
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:
https://forums.odforce.net/topic/45970-edit-multiple-geo [forums.odforce.net]’sedit-sops-of-a-network-at-the-same-time
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:
https://forums.odforce.net/topic/45970-edit-multiple-geo [forums.odforce.net]’sedit-sops-of-a-network-at-the-same-time
Edited by OdFotan - May 30, 2020 21:14:41
- peteski
- Member
- 518 posts
- Joined: Dec. 2013
- Offline
- Kirill Tiufyakov
- Member
- 1 posts
- Joined: July 2014
- Offline
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
Edited by Kirill Tiufyakov - May 26, 2023 16:03:44
-
- Quick Links