(Novice Q.) 16.5 has removed the 'For Each Subnetwork', what should I use instead?

   9412   5   2
User Avatar
Member
38 posts
Joined: July 2017
Offline
Hi, I'm a novice and am following a tutorial where I need to use the ‘For Each Subnet’ node, but 16.5 has removed it. What should I use instead?

This page -

http://www.sidefx.com/docs/houdini/news/16_5/index.html [www.sidefx.com]

is perhaps suggesting that I use the Agent Edit SOP…can someone confirm, or point me in the right direction?
Thank you :-)

full extract from SideFX Docs -

You can now use Agent Edit SOP interactively in the 3D view. Agent Edit can now adjust transforms in the agent’s local space instead of world space. You can now adjust a joint’s scale transform. Agent Edit can now use VEXpressions to vary the transform parameters for each agent.
User Avatar
Member
1743 posts
Joined: March 2012
Offline
That page definitely doesn't look like it's drawing a connection between those two, since they're very far apart on the page. (It shouldn't, either, because they're completely unrelated). Do they appear close together on your browser?

For Each Subnetwork was removed in favour of the For Each blocks. You no longer have to dive in and out of subnets to do for loops, and they're much easier to nest than before. They also provide some long-requested benefits for advanced users, (e.g. multi-threading in certain cases). Press Tab in the network editor, then type “For” to see the various options. Hopefully that will get you some options you can use.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
7737 posts
Joined: Sept. 2011
Offline
enter this in the textport:

opunhide Sop foreach

And you'll be able to use the foreach subnetwork again, for now.
User Avatar
Staff
462 posts
Joined: July 2005
Offline
Hi, sorry that bit in the What's New is missing more information and a link, it slipped through the cracks.

To see the “modern” way to do looping, check out http://www.sidefx.com/docs/houdini/model/looping.html [www.sidefx.com]
User Avatar
Member
1 posts
Joined: April 2018
Offline
mchaput
Hi, sorry that bit in the What's New is missing more information and a link, it slipped through the cracks.

To see the “modern” way to do looping, check out http://www.sidefx.com/docs/houdini/model/looping.html [www.sidefx.com]


Hi.

Isn't the tutorial based on H15 which has different “For Each” types (the very reason the OP asked the question)? Can't see which loop type is used in tutorial as it's cut off by the screen end, but there seem to be just 2 types vs 5 in H16.5.

Thanks,

Matt
User Avatar
Member
319 posts
Joined:
Offline
I use the new for loops whenever I can, but I can never get them to work when the operations I want to loop over contain any time based sops (e.g. timeshift, trail etc.).

The foreach subnetwork allowed for all these situations.

I am aware of the technique of structuring it so whatever time based stuff your doing lies outside of the loop, but its cumbersome, forcing you to work around the problem instead of addressing it directly.

Are there any plans to make the new loop structure work in these scenarios?
  • Quick Links