Possible to edit multiple objects at same time?

   38099   28   8
User Avatar
Member
216 posts
Joined: 10月 2015
Offline
Hello,

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

Attachments:
network_to_treeview.gif (94.0 KB)

User Avatar
Member
406 posts
Joined: 3月 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
406 posts
Joined: 3月 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: 4月 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 - 2020年5月20日 06:03:09
User Avatar
Member
1755 posts
Joined: 3月 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 - 2020年5月21日 10:26:10
User Avatar
Member
517 posts
Joined: 12月 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 - 2020年7月2日 03:00:50

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

User Avatar
Member
192 posts
Joined: 4月 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 - 2020年5月30日 21:14:41

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

User Avatar
Member
517 posts
Joined: 12月 2013
Offline
Oh wow that's awesome!
User Avatar
Member
1 posts
Joined: 7月 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 - 2023年5月26日 16:03:44
  • Quick Links