I am instancing several splines on points. Then I need to realize them to change positions, etc. After that I use “Curve to Mesh” to give the splines a tube-like form.
I try now to “separate” the complete mesh from “Curve to Mesh” into the single tubes, so that I can give each tube a different color.
I tried to pass a color attribute to the shader, but the problem is, that the mesh does not have mesh islands yet, so there can’t be an “id” definition for the single faces.
Is there another way?
note that in the shader, i have ‘Instancer’ in the Attribute Node, since the splines are just instances. If they were realized, then you’d choose ‘Geometry’ in the Attribute Node instead.
Please note that since the arrival of Named Attributes that you don’t need to plug them into the output… you can just use them as Attributes in the shader editor:
thanks… i thought that worked, but once in awhile it didn’t for me, so just got used to always putting in output. mayhaps a name space collision? or just some other operator error on my part.