Search the Community
Showing results for tags 'for-loop'.
Found 3 results
Heyo Houdini wizards, I am trying to run a timeshift inside a for-loop and timeshift one specific iteration of the for loop but I am having some issues. It only seems to work when I run the for-loop in single pass. When I run it without the single pass the timeshift seems like it is ignored. I am trying to make an HDA where a user can transfer multiple different attributes and also have a time offset control making it so that attribute "b" is transferred 10 frames after "a", or vise versa. Does anyone have any ideas about this one? (Hopefully the two HDA's I've made transfer over alright. I have enabled baking them into the hipfile in the asset manager settings but have never tried it before) I am including my hip-file (its from houdini 17.5). Sorry about the mess, I tried cleaning it up to the best of my ability. The "problem area" can be found here: "/obj/Tests/Test_Soft_Constraints/curve_constraint_breaker5/", put the display-flag on "visualize1" inside "curve_constraint_breaker5" and try to toggle "repeat_end1" "single pass" option to see the issue. The for-loop is driven by the different entries in the "Set Attribute Values" list on "curve_constraint_breaker5". There might be some fracturing that has to cook at startup. I'm including some pictures as well but I am not sure if they are saying much (the screenshots show a visualization of the attribute transfer, havent moved timeline scrubber, only turned on or off the single pass option). Thank you so much for the read! timeshift_forloop_issue.hipnc
KlausK posted a topic in General Houdini QuestionsHello everybody This is my first post and it is about a topic which has been scratched over and over it seems... But after a lot of tutorials, searching and studying many threads here on odforce I cannot for the heck of it get my head around this and find a solution. In fact I was following a tutorial for HOU.14.x which brought me to this. But the For-loops have changed so I only managed to get this far. HOU.17.5.258 here. As the topic title says: "Tubes on terrain crawling through each other instead of over each other" is what I want to be happening. I tried to use a "creep", a "each" another "for each" to no avail. I would very much appreciate if someone could alter my attached file with the solution, so I can study that. Meanwhile, I`ll go on reading and trying to understand what is going on in my scene. Thank you very much in advance. CHeers. k_skinned_tubes_on_terrain_overlapping_0.hip
I am working on a way to place packed primitives (sphere) onto a point cloud one at a time, detect if there is a collision and shrink the object until there is no collision. I have attached a file I am working on. Currently the scale is set to the iteration of the loop but does not seem to work correctly. For collision I am using the intersection node on feedback of the first for-loop and setting a detail attribute Collision to the just added sphere and from there setting a stopping value for the for-loop is attribute exists. The internal for-loop is then merged into the first and the cycle continues until all the points are filled. Am I going about the right way of setting this up? For-Loop_Intersection.hip