Lay Out Network Boxes (automatic)

   691   7   2
User Avatar
Member
207 posts
Joined: 1月 2016
Offline
Please, look at the attached picture. The command "Lay Out All" or "Lay Out Selected" doesn't work nice here. Can I do something to make the automatic layout look similar to the third layout?

Attachments:
automatic layout.png (211.0 KB)

User Avatar
Member
2625 posts
Joined: 6月 2008
Offline
Try holding down the A-KEY and drag down on the top node. That should give you mostly a vertical alignment.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
297 posts
Joined: 1月 2013
Offline
Layout Nodes Up here seems to be the better option in this situation.
User Avatar
Member
392 posts
Joined: 11月 2008
Offline
Interesting, curious what are the rules when the Network boxes are around nodes.
It gets even worse when each part has it's own network box, you select everything and press L.

Also when doing layout up/down, expected to get some (uniform) gap between network boxes too (to keep the network box labels readable and not occluding each other).

#140575
Edited by pezetko - 2024年8月29日 10:57:05

Attachments:
layout_selected_with_network_boxes_2024-09-29.webm (77.3 KB)
layout_up_down_selected_with_network_boxes_overlaps_2024-09-29.webm (163.5 KB)

User Avatar
Member
207 posts
Joined: 1月 2016
Offline
Thank you very much! The "Layout Nodes Up" is quite good, as long as it does not layout two separate streams (preview attached).

@pezetko did you submit it as a bug? The #140575 is confirmed ID of the bug?

Attachments:
layout nodes up.png (58.1 KB)

User Avatar
Member
567 posts
Joined: 8月 2014
Offline
I tend to avoid network boxes because of this problem with automatic layout. Instead, I use operator colors. Sometimes subnetworks, but they require diving in and out.

Perhaps if network boxes used the form of block grouping, that is already present in "compile" and "for" blocks, just with somewhat different decoration and with a label slapped onto it, they would be more useful.
Edited by ajz3d - 2024年8月30日 09:30:51
User Avatar
Member
207 posts
Joined: 1月 2016
Offline
ajz3d
I tend to avoid network boxes because of this problem with automatic layout

I have exactly the same problem for many years, since they have been introduced. I have been quiet for too long :]

I am thinking about making my own Python wrapper around the layoutChildren() function.

- store all network boxes in a list
- delete all network boxes
- layoutChildren()
- recreate the network boxes

It is not that complicated to do, and quite tempting to have them layout fine.
Edited by ikoon - 2024年9月2日 06:17:04
User Avatar
Member
392 posts
Joined: 11月 2008
Offline
ikoon
@pezetko did you submit it as a bug? The #140575 is confirmed ID of the bug?
yes, with link to this thread for more examples/discussion.

I did expected from auto layout to minimize wire crossing and minimize change in node graph's flow direction.
  • Quick Links