frank_13847 Posted November 17, 2020 Share Posted November 17, 2020 Hello dear fellas, I'm currently studying Anastasia Opara's Procedural Lake Houses (wonderful, but a little bit outdated since it still makes use of for loop subnets) and I'm reporting a "weird behaviour" when using for-loops along with the iteration detail attribute that comes from metadata.. While trying to "update" Anastasia's workflow to houdini 18, I wanted to use the iteration number coming from metadata to blast everything but the correspondent "piece" number, which unexpectedly keeps piece 0 at every iteration and not piece=iteration. I'm using a second block begin fetching in some primitives (I've already tried fetching pieces but it gives an error since block end isn't set to "pieces" but "feedback"). I'm sure it will make more sense from images and my hip file, I've already tried the documentation and a lot of other topics here on odforce but I couldn't figure out what i'm missing. Is there anyone who could find what I'm missing? It would be of great help! Thank you in advance Cheers Frank for_loop_issue.hip Quote Link to comment Share on other sites More sharing options...
Librarian Posted November 17, 2020 Share Posted November 17, 2020 @frank_13847 If you Have Time to just Copy Paste to Translate Google Here you can Find Solution Quote Link to comment Share on other sites More sharing options...
frank_13847 Posted November 17, 2020 Author Share Posted November 17, 2020 15 minutes ago, Librarian said: @frank_13847 If you Have Time to just Copy Paste to Translate Google Here you can Find Solution Thank you Tesan for your suggestion but the author of that page seems to only bypass the parts of the workflow he couldnt "update", one of which is the one in this topic. More than this specific case, I wanted to make a more general question about multiple blockbegin nodes in a for loop and the issue about blasting by iteration. Still, very much appreciated!!!! Quote Link to comment Share on other sites More sharing options...
Librarian Posted November 18, 2020 Share Posted November 18, 2020 (edited) @frank_13847 Hm I think that in Part III In the Building 4 of 20 he Trying Something similar ..Me just Having Fun ..You know What you Searching I Just 50/50 guessing Edited November 18, 2020 by Librarian Quote Link to comment Share on other sites More sharing options...
frank_13847 Posted November 18, 2020 Author Share Posted November 18, 2020 Thank you again for reaching out Tesan, in the end the solution, AS EXPECTED, was terribly straightforward: a- correctly spelling in the blast node: @id=`detail("../metadata","iteration",0)` (i was missing the back ticks, stupid me, so the blast node wasn't reading it properly); b- adding a second block begin (if you lay down a for each number preset, you'll get it right away) and set it to fetch input and make it stream down to block end of your loop, and then attach the blast node from a-, so that it keeps the correspondent piece/iteration only, so now you can reference it to whatever you want to do in your "main" stream of the loop. I'm just writing it down so that anybody in the future will solve the problem, still, thank you for you effort!!!! Best wishes! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.