1
$\begingroup$

Currently building a geometry nodes setup that create a web of sphere distributed along the point of a curve as follows:

I would like to have the spheres with more than 1 connection to be green and the spheres with 1 or less to be yellow. Is there a way to assign materials that way ? or atleast control the seed generated by the Object Info > Random factor ? (Blend file uploaded)

enter image description here

Node setup for the distribution :

enter image description here

Shader nodes :

enter image description here

$\endgroup$

1 Answer 1

1
$\begingroup$

Here is something ... Vertex Neighbors ... cubes are green. If an instance is at point with less than 2 connections material is pink.

enter image description here enter image description here

$\endgroup$
4
  • $\begingroup$ Thank you very much !!! $\endgroup$ Apr 22, 2023 at 17:54
  • $\begingroup$ Another question : I've noticed doubled control points on the curve I used, mainly due because of multiple segments joined at a single point. Is there way to use only 1 curve handle for 3+ segment intersect ? The resulting issue is doubled instances $\endgroup$ Apr 22, 2023 at 18:09
  • 1
    $\begingroup$ Why don't use a Mesh instead of Curve object directly? Or you can add Convert to Mesh node and Merge by distance node just for the purpose of Capture Attribute ... $\endgroup$
    – vklidu
    Apr 22, 2023 at 19:04
  • $\begingroup$ I need to have spheres moving along the curve by using the factor of the Sample curve node, kind of a stream of instances going from one sphere to another. It is apparently not doable when I have multiple splines in 1 curve object. $\endgroup$ Apr 22, 2023 at 20:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .