0
$\begingroup$

so I am pretty new to geometry nodes and I´m kinda stuck.

I have a mesh with vertex colors (stored in the Col attribute) and I´ve used geometry nodes to add a bunch of cylinders on there, setting their colors using the Col data.
Now I´d like to sort them into a grid depending on their colors. Basically removing them from their original position on the mesh by transforming their RGB to XYZ values.

Here´s my current setup:
enter image description here

And here´s a very rough sketch of what i want it to look like: enter image description here

Now I´ve tried a bunch of things like capturing the attributes but it doesn´t work.
How do I access the Col values I can see in the Spreadsheet?
Is it even possible to do what I´m trying to achieve?

$\endgroup$

2 Answers 2

2
$\begingroup$

Check this out:

Via the Input (defined as Vector in the group input) and entering "Col" in the modifier you can access the vertex color.

enter image description here

enter image description here

enter image description here

enter image description here

$\endgroup$
2
  • $\begingroup$ Thank you so much, this is exactly what I needed! $\endgroup$
    – HTMLwyn
    Jul 10, 2022 at 13:50
  • $\begingroup$ You are welcome! $\endgroup$
    – Chris
    Jul 10, 2022 at 13:57
1
$\begingroup$

You are searching for Named Attribute node, it was added in Blender 3.2. Screenshot is from Blender 3.3 alpha.

Named Attribute node

$\endgroup$
1
  • $\begingroup$ Thank you so much, this is exactly what I needed! $\endgroup$
    – HTMLwyn
    Jul 10, 2022 at 13:50

You must log in to answer this question.

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