samadoni

Hi,

Is there a way to have some rules on how the lines are connected for the cocoon node?

Imagine in the picture below i want the red points to be connected only to the blue points and not to their red neighbors.


thanks



  

Quote 0 0
pshipkov
Can you pass a scene and i will give it a try.
There are couple of ways to do that, not sure which one will fit best.
Thanks.
Quote 0 0
samadoni
hi,
here is a simple startup scene
Quote 0 0
sepu
Can you do it by id? and whatever if you have more blue pts than red just do module function. 
Quote 0 0
samadoni
i was thinking maybe with the shortest path node, didn't play much with it, but is it possible to make it travel through a point cloud like the scatter node or it has to be with a mesh? 
Quote 0 0
juanjo_bernabeu
I dont know SOUP enough for this, but with Mash is incredible easy. Yo can connect two MASH with trails (coocon MASH version).

The next logical step is...can Soup be understood with this trails mesh to convert it to curves or multicurve node...? I guess so, I'm not very up to date with Soup.
3D Supervisor
Quote 0 0
samadoni

are you sure with this? i know that with mash we can make the lines connected to the center on a single point but it's not really what i want. (but if you have an example i would like to see please)

Just to be sure here is an example i did with houdini to illustrate (almost) what i want. 


[DnoUSd]

Quote 0 0
juanjo_bernabeu
With Maya 2018 you can do that., because you can attach a second Mash (point on mesh on other geo), in the conection network attribute. And the best is you can maintain fully procedural.


2018-02-22_21h17_33_LI.jpg 

3D Supervisor
Quote 0 0
samadoni

haa i see it's a new feature in the 2018, didn't yet switched completely to 2018.

But thanks, good to know 

Quote 0 0
pshipkov
Forgot to answer this one.

   cocoon.png   

There are many ways how to do that.
SOuP nodes provide a lot of options how to map data from different sets - in this case the two point clouds.
I used attributeTransfer to map them based on proximity. You can use the kdTree node to do the same. Since this is a study, the attributeTransfer+boundingObject is more visual and easier to understand.


Quote 1 0
samadoni
great, thank you for the file. 
Quote 0 0