0
$\begingroup$

I found it useful to have a collection of points where each point has a radius corresponding to its index (first point r=0, second point r=1, ...).

Just to explain briefly for what I'm using that: This way, after instantiation by an Instance on Points node, I know which point was instantiated. This is useful when I'm e.g. instantiating something on the nearest point of a point cloud, but need the information which object from a collection actually was the nearest afterwards. Instead of the final object I'm using these "radius=index" points and replace them by the real objects only afterwards.

My problem is this: currently I have a Collection of 20 Points created manually using this node group 20 times on individual objects:

Radius point node group

This is my collection of 20 points:

enter image description here

This collection is used e.g. here (red box): enter image description here

What I'm looking for is a way to create a variable number of N Point Instances (!) where each point has a different radius corresponding to its index by a/within a node group (replacing the red box). So far I couldn't find a way to do that. Is it possible (using Blender 3.2.0 alpha)?

Hope it's not totally unclear what I want, found it hard to explain...

Edit:

Here is a simplified example: It creates points where the radius of each point is the index of the nearest object (by origin) in Collection RefObjects. It is using a Collection of Points where the radius of each point is the index in this Collection (Points)

What I'm looking for is a replacement for the Collection Info node (collection of points with radius=index) leading to the exact same result (without using a Collection Info node of course).

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ I'm finding this pretty unclear. It's probably overly simplified. I think a real world example, complete with file, and what you want that you don't have, or what you have that you want simplified, would probably help. $\endgroup$
    – Nathan
    Feb 20, 2022 at 20:36

1 Answer 1

0
$\begingroup$

Since you replace points by points with radius, you can replace your instance on points by set point radius:

enter image description here

$\endgroup$
1
  • 2
    $\begingroup$ When I saw your answer I thought ok, but this doesn't work in my real setup. But it actually works! My biggest remaining problem now is: Why do I always feel like a complete idiot when I play around with Geometry Nodes and can't see the forest for the trees anymore :-) Anyway, thank you so much! $\endgroup$
    – Patter
    Feb 21, 2022 at 11:46

You must log in to answer this question.

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