[Sidefx-houdini-list] Grouping by connectivity and/or position

Spencer Lueders Spencer.Lueders at framestore.com
Tue Jan 18 12:01:21 EST 2011


just as Andrew said, but if you dont want the other red prims which are not touching you could do:

delete SOP > By Expression > $CR > 0.9 && $CG < 0.05 && $CB < 0.05
connectivity SOP
group SOP > By Expression > $CR > 0.9 && $CG < 0.05 && $CB < 0.05 && $CLASS == 0

class is generated by the connectivity sop and gives a unique value to each connected geo starting with "0".

----- Original Message -----
From: "Andrew D Lyons" <tstexture at gmail.com>
To: sidefx-houdini-list at sidefx.com
Sent: Tuesday, 18 January, 2011 11:52:02 AM
Subject: Re: [Sidefx-houdini-list] Grouping by connectivity and/or position

I may be missing some complexity, but it sounds like:

1./ group geometry SOP
2./ group by expression:
3./ $CR > 0.9 && $CG < 0.05 && $CB < 0.05

or the like...

Cheers

On 18 January 2011 00:08, Alvaro Castaneda <varomix at gmail.com> wrote:
> Hi
>
> Is there a way to group primitives in a grid that are the same color of the
> first left upper corner primitive, and that are also connected?
>
> maybe this can help make it clearer
>
> let's say I have a grid with 6 random colors, the left upper primitive (0)
> has a color of red, and that is directly touching some other primitives also
> colored red, how can I get, only those primitives into a group, and ignore
> the rest of the unconnected red primitives in that grid?
>
> Thanks
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



-- 
=======================================
Andrew D Lyons | Digital Artist | http://www.tstex.com
=======================================
_______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com
https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

-- 
Spencer Lueders
Technical Director
Framestore NY



More information about the Sidefx-houdini-list mailing list