Possible to edit multiple objects at same time?

   53970   28   9
User Avatar
Member
219 posts
Joined: Oct. 2015
Offline
Hello,

Just in case, you can set Network View to Treeview mode and multiselect.
Edited by julca - Jan. 14, 2020 08:20:40

Attachments:
network_to_treeview.gif (94.0 KB)

User Avatar
Member
475 posts
Joined: March 2014
Offline
Thanks, but it looks that's only a cosmetic solution.

Then I still have to use the dropdown menu to navigate between Materials, Objects, output etc.
User Avatar
Member
475 posts
Joined: March 2014
Offline
Just in case someone else runs into this Tree View thing.

The “following selection” was the culprit. I did not notice it, and it's disabled by default.

Strangely enough this button doesn't seem to have any effect in the Network View.
User Avatar
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
User Avatar
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.
Edited by anon_user_89151269 - May 21, 2020 10:26:10
User Avatar
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 -
#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

Attachments:
May-22-2020 09-00-00.gif (4.4 MB)

User Avatar
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
Edited by OdFotan - May 30, 2020 21:14:41

Attachments:
odplan2.gif (10.3 MB)
selectable_motionpath.share.hipnc (116.5 KB)

User Avatar
Member
518 posts
Joined: Dec. 2013
Offline
Oh wow that's awesome!
User Avatar
Member
1 posts
Joined: July 2014
Offline
OdFotan
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
This 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.
Edited by Kirill Tiufyakov - May 26, 2023 16:03:44
  • Quick Links