paudvil

paudvil

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

For loops in a subnetwork Oct. 24, 2024, 6:36 p.m.

Hello, I am a bit confused on this cause I am a bit of a slow learner and haven't ever done what I am trying to accomplish.
I am trying to learn by recreating a tool made by Emanuel R. His tool uses a main curve as a guide to create rectangles inside a curve but, he can keep on adding rectangles by using the first rectangle he created as the starting location of the new rectangle and so on and so forth. It's truly amazing. The thing I am having trouble with is the for-loops. I wish to have a for loop that takes the main curve and creates a rectangle, save that shape and then create another rectangle on top of the previous one, and so on and so forth. I have read the documentation on for-loops but I have yet to understand how to make it work.
In Emanuel's amazing tool, he can even alter the previous shapes he made on his tool.
On my case when I create the second rectangle and move the slider up and down, the previous iteration doesn't appear and when I look at what is happening it so happens that my previous iteration is being modified along with the newest one. Its truly confusing. If anyone knows how to make this work, I would be very grateful.
My for loops are: the first one is set to fetch piece or point with an end block set to merge each iteration on pieces or points.
The second one (where I think the problem lies) is set to Fetch Feedback and the end block to By Count and whether I place it on merge each iteration or feedback it doesn't work.
In one of the images I set my flag to observe what was happening before the end of the second for loop and there I can see how I am only altering the new iteration and my first iteration shows there...but it isn't actually my first iteration cause the shape wasn't like that. Once I view it on the for loops it is altering all both the first and the newest iteration and even if I try to alter my first iteration on my tool, it doesn't work. So I believe the problem lies on my for loops that I just can't simply understand why they are working the way they are.

Emanuel's tool: https://somethingunreal.artstation.com/blog/j1Y4/houdini-window-generator-1 [somethingunreal.artstation.com]

Hope you all have a wonderful day