Ezz Posted January 27, 2009 Share Posted January 27, 2009 (edited) Hello dear Houdini-Folks. I am trying to understand the ForEach-SOP and for that purpose I have invented a little exercise. I understand the basic idea with this SOP, but I am running into problems when trying to solve this. What I basically want is to chop a box or any giving geometry with and grid( followed by a mountain-SOP) multiple times. I guess this is doable in the ForEach-SOP, but I dont how to make it work. In my example I do the chopping in two steps. One that produce a buttom part, and another that creates a top part. My problem is that I only want the top part into the ForEach-SOP at each loop. Well I guess Im stucked and its a bit hard for me to explain. I have attached a scene with my problem. I hope I can get a hint or a suggestions to solve this. Thank you very much Erik foraech_troubles.hipnc Edited February 3, 2009 by Ezz Quote Link to comment Share on other sites More sharing options...
Ezz Posted January 27, 2009 Author Share Posted January 27, 2009 By the way. I have translated the chunks marked in red just to seperate them visually. Thanks :-) Erik Quote Link to comment Share on other sites More sharing options...
mic Posted January 28, 2009 Share Posted January 28, 2009 (edited) hi, Erik! i also studying shattering objects, foreach SOP (and point clouds)), you can see my topic in general houdini questions. what do you want exactly? simple shatter with your foreach SOP isn't difficult, i posted it.. perhaps that's not you want - because how to tell foreach SOP to update which group ('Aout') it must shatter i don't know! that's some recursion.. shatter.hip Edited January 28, 2009 by mic Quote Link to comment Share on other sites More sharing options...
Ezz Posted January 28, 2009 Author Share Posted January 28, 2009 Hi Mic. Thanks a lot for your answer. Much appriciated :-) Ill have a look your file. Cheers Erik Quote Link to comment Share on other sites More sharing options...
Ezz Posted January 29, 2009 Author Share Posted January 29, 2009 Hi again Mic. I have seen your file though today, and its good. But its not exactly what I want. Im looking for a solution that gives solid pieces out of the Foreach-SOP like the one in green in the picture. - Yours gives only poly shells. But thanks for giving some time to the suggestion. Erik Quote Link to comment Share on other sites More sharing options...
michael Posted January 29, 2009 Share Posted January 29, 2009 solid pieces? Houdini doesn't support solid models Quote Link to comment Share on other sites More sharing options...
Ezz Posted January 30, 2009 Author Share Posted January 30, 2009 Hey Michael. I mean closed geometry off course. Sorry about the confusion. Erik Quote Link to comment Share on other sites More sharing options...
Ezz Posted February 3, 2009 Author Share Posted February 3, 2009 Hi again. I solved my problem. Silly me - I should just have taken a look on the new ShatterSOP - It had all the answers !! I have attached my solution if anyone is interested. So now its cuttingtime :-) Erik foraech_test_03.hipnc.hip Quote Link to comment Share on other sites More sharing options...
khasperha Posted February 13, 2009 Share Posted February 13, 2009 Hello Ezz Thanks for sharing :thumbsup: Quote Link to comment Share on other sites More sharing options...
Ezz Posted February 13, 2009 Author Share Posted February 13, 2009 Hey.. My pleasure - Im glad that I can contribute a little bit to this fantastic forum. Well this project helped me understand the ForEach-SOP better and its so powerfull. Houdini Rocks :-D Erik duckling.dk Quote Link to comment Share on other sites More sharing options...
mic Posted February 13, 2009 Share Posted February 13, 2009 Hey..My pleasure - Im glad that I can contribute a little bit to this fantastic forum. Well this project helped me understand the ForEach-SOP better and its so powerfull. Houdini Rocks :-D Erik duckling.dk thank you, Ezz, yes, the solution was to use foreach in foreach) thank you for posting the scene, that's useful example! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.