for-each with feedback

   3002   3   0
User Avatar
Member
2 posts
Joined: Dec. 2013
Offline
Hey everyone,

I need little help with PDG. I use Houdini 18.0.518. I would like to run “for-each loop with feedback” with 3 iterations, and perform some operation on input geometry by invoke node, write result on disk on each step. Everything works fine, besides feedback. It seems that instead of using result of previous step(for iterations 2 and 3) it uses input geometry on every step, so at the end I get the same result for all iterations. I made the same setup with H17.5.631 and it works as intended. I will attach scripts for both versions.

Thanks.

Attachments:
test_17.hiplc (155.4 KB)
test_18.hiplc (119.8 KB)

User Avatar
Staff
585 posts
Joined: May 2014
Offline
On your Feedback Begin block change the “Copy Input Files” parameter from “All Iterations” to “First Iteration”. In both cases the loop will correctly feedback the output files from the previous iteration, however those files appear after the regular upstream input files in the inputs list. You can check that by middle-mouse clicking one of the work items in the feedback begin node.

Also, on the Invoke node you'll need to turn on the “Load Geometry During Cook” toggle. The input geometry for iterations 2 to N doesn't exist until the loop begins to cook. You need that option enabled to tell TOPs not to try to load input geometry when the work items are first generated.
User Avatar
Member
2 posts
Joined: Dec. 2013
Offline
Thank you very much! Problem solved)
User Avatar
Member
7 posts
Joined: Jan. 2020
Offline
This totally helped me 2! Just wanted to say thanks <3
  • Quick Links