July 5, 2020 16:31:39
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.
July 6, 2020 01:49:25
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.
July 6, 2020 10:04:30
Thank you very much! Problem solved)
Feb. 24, 2022 12:28:45
This totally helped me 2! Just wanted to say thanks <3