Connectivity per attribute

   3460   5   2
User Avatar
Member
65 posts
Joined: March 2017
Offline
Hi,

I have a geometry with a “mask” (0 or 1) attribute and I would like to reproduce the connectivity SOP behaviour looking up at this attribute instead of adding a blast node to delete the points with mask at 0.

Any idea how I could do this ?

Thanks,

Julien
VFX Supervisor @ MPC London
User Avatar
Member
132 posts
Joined: June 2016
Offline
i cant understand what you are trying to do. but if you want to delete points with mask 0 , you can connect a blast node and type @mask=0 without spaces in the group knob. or you can do this and lot more in attribute wrangle
if (@mask==0){
removepoints(0,@ptnum)
}

or if you wanna groups based your attribute take a look at partion sop
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
User Avatar
Member
65 posts
Joined: March 2017
Offline
Hi,

No, this is not what I'm trying to do, or at least how I want to do it. I can do what I need with this :
- Blast the points with mask == 0
- use the connectivity sop to add attribute per connected primitives
- transfer attributes to the original model (the one without the blast)

What I'm wondering is if there is a way to the same without having to blast the points (which is expensive).

Hope this makes more sense.

Thanks,

Julien
VFX Supervisor @ MPC London
User Avatar
Member
132 posts
Joined: June 2016
Offline
if you are transferring back the attributes to the original mesh using an attribute transfer sop then the attribute will spread on your blasted points as well, so is that what you need ?
you could post a hip file which will be helpful to understand what you are trying to do and why.
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
User Avatar
Member
8595 posts
Joined: July 2007
Online
you can use Primitive Split using mask attrib before Connectivity, instead of blast, should be a bit faster
or if you can define border edges between various mask attrib values as an edge group you can use it for Seam Group in connectivity node directly
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
65 posts
Joined: March 2017
Offline
Yes, the seam group works well !

Thanks,

Julien
VFX Supervisor @ MPC London
  • Quick Links