luthio1 Posted October 25, 2013 Share Posted October 25, 2013 Hello, I am still new to Houdini and got the following Problem to solve: I got a fractured Object and want to use a Box to Group a specific area of the fractured Object. BUT I want to select only whole Pieces. In other words: If one or more Primitives with the Attribute NAME are in Box, assign ALL Primitives with same Value of Attribute NAME to Group "X". Example 1: If Prim A (with Atb. NAME = "Piece5") is in Box, assign ALL Prim with Atb. NAME == "Piece5" to Group "X". Example 2: If Prim B (With Atb. NAME = "Piece2") and Prim C (Atb. NAME = "Piece9") are in Box, assign ALL Prim with Atb. NAME == "Piece2" OR NAME == "Piece9" to Group "X". So in the end it should work for n Primitives in Box. How can I achieve this? Thanks in advance Lukas Quote Link to comment Share on other sites More sharing options...
tmdag Posted October 25, 2013 Share Posted October 25, 2013 (edited) One of many possibilities groupBox.hipnc Edited October 25, 2013 by tmdag Quote Link to comment Share on other sites More sharing options...
luthio1 Posted October 26, 2013 Author Share Posted October 26, 2013 thank you very much. nice method. I now try to figure out a way of achieving the same result but by using color tools. So i want to be able to use the "Color paint tool" and paint color automaticly on whole pieces. Quote Link to comment Share on other sites More sharing options...
tmdag Posted October 26, 2013 Share Posted October 26, 2013 you could promote attribute to primitive (if object is one primitive) or to detail (if you iterate through each object separately) and then promote that attribute (Cd) back to points Quote Link to comment Share on other sites More sharing options...
luthio1 Posted October 27, 2013 Author Share Posted October 27, 2013 thanks again for your help. i am only one step away from my goal. now i only need to get the avagere color value of a group of primitives. Quote Link to comment Share on other sites More sharing options...
Shinjipierre Posted October 28, 2013 Share Posted October 28, 2013 attribute promote again, it can compute the average 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.