Jump to content
luthio1

Group (by Box) only whole Pieces of Fractured Object

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×