3
$\begingroup$

My goal is to use serial of specific list of numbers as vertex selection.

For example if I have a numbers 1,3,17 and I want to distribute instances on a grid at vertex number 1,3,17.

Since I don't see an option to use String node as source I imported CSV text file via addon. It generates an object and stores values as Attribute per vertex. No problem for Loc/Rot/Scale like here, but what about selection?

I can see the attribute (named vertices) is there ...

enter image description here

... but attribute is not seen as vertices by Selection socket.

enter image description here

Ideas how to solve the issue?

$\endgroup$
16
  • 1
    $\begingroup$ maybe i misunderstood, but shouldn't be the selection a boolean than an integer? so if they are all > 0 ...they are all true $\endgroup$
    – Chris
    Commented Dec 11, 2022 at 15:22
  • 1
    $\begingroup$ Chris is right, since it's a boolean field, it's only looking if they're greater than 0 or not, and they're all positive so it selects all first 7 points. You need to compare the sampled index numbers to the context's (grid). However, while that works for me if I sample a single index, it doesn't when I look at all indices so I'm a bit stumped as well: i.imgur.com/k1QQrzj.mp4 $\endgroup$
    – Kuboå
    Commented Dec 11, 2022 at 15:25
  • 1
    $\begingroup$ @Chris Thanks for contribution, but I'm and I will be a geonode looser (I do very elementary progress full of pain, so If you want to help just hints are not helping me, sorry ... use answer or screen to illustrate please. Transfer Attribute > Boolean the output is 1 for all. $\endgroup$
    – vklidu
    Commented Dec 11, 2022 at 16:01
  • $\begingroup$ @Kuboå Thanks for try ... I can't even try it since at home my Mac can't open last Blender 3.4 based on Metal, so no "Sample Index" node available ... $\endgroup$
    – vklidu
    Commented Dec 11, 2022 at 16:18
  • $\begingroup$ Just a few thoughts 1) your "vertices" attribute is actually the indexes of the verts that your want to select/mark. That means you need to compare these numbers with the index of the grid, which results in a boolean value (true/false = selected/not selected). -- 2) The Transfer Attribute node loops through all verts of the grid (destination) & adds the attribute of the sources mesh. If there are not enough values it repeats the last value. This means you cannot match the indexes because the Index node only gives you the index of the source mesh, not the destination. You need both indexes $\endgroup$
    – Blunder
    Commented Dec 11, 2022 at 16:20

1 Answer 1

5
$\begingroup$

You can sample the grid at the indices in the Named Attribute 'vertices', set the Test Vertices object's vertices to those points, and instance on those:

enter image description here

with this result:

enter image description here

$\endgroup$
2
  • $\begingroup$ Ha ... it took me from a bed now! Thanks ... I went by this way at the beginning, but I failed - so close / so far :) Thanks a lot. Before I leave this topic - Am I right with my comment under my Q? There is not any simpler way to feed Selection socket without addon (to generate attribute from CSV) ... like from Text editor or what ever ... String node? $\endgroup$
    – vklidu
    Commented Dec 11, 2022 at 20:13
  • $\begingroup$ @vklidu have to sleep on that one... being a bit dim this pm. Maybe our quellenform will come up with something :) $\endgroup$
    – Robin Betts
    Commented Dec 11, 2022 at 20:59

You must log in to answer this question.

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