Jump to content

doubleForEachLoop


Recommended Posts

Hi,

I'm new to houdini and only have been playing for a bit. So this is probably a very simple question to all the experienced houdini users but I've been searching on the net and documentation and can't work out what I'm doing wrong. So any help would be greatly appreciated.

I used a copy node to create multiple geometries and I want to make sure that those geometries do not overlap. So I've created a foreach node within foreach node, and inserted the same geometries in both inputs, so each geometry loops with other geometries and uses cookie only when the FORVALUE1 > FORVALUE2.

It kind of works and when you look at each geometries using delete1, their geometries are modified as expected.

However, when I feed that output into another foreach node for some modification, all geometries disappear but one.

Once that happens, even if I disconnect a new foreach node, the state doesn't change. Only when I disconnect/reconnect the previous node to force recook, it seems to come back to the previous state.

I'm really stumped and can't work out what's happening. I've attached the file that demonstrates my problem.

Any help or insight would be great.

Thanks,

doubleForEachLoop.hip

Link to comment
Share on other sites

Haven't looked at the file Alex, but if you have nested loops the stamp variables need to be named differently. Could that be the problem?

Thank you for the reply.

stamp values are different FORVALUE1, FORVALUE2.

I also tried creating different primitive values, or duplicating the graph network but to it didn't help.

The strange thing is that it works until you attach another foreach node below it then it starts behaving not as I expected. Once that happens, even if you disconnect that node. I'm still having the same problem. It's not until you disconnect/reconnect the node above to refresh that it works again.

I'm sorry if this sounds confusing. It's tricky to explain.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...