Applying multiple materials to splines

Hi, I’m new here and to geometry nodes. Could anyone help me on how to apply different materials to whole mesh splines from selections that are being converted from curves object? I have this setup with set material which is wrong. I tried spline parameter index but that didn’t work. I’d like to just paint B/W the sphere for example and W or 1 would be red and B or 0 would be blue material for whole spline. Or just do it randomly with white static noise.

You can capture spline index and use it as random value ID so each spline will receive its own random value instead of each point as you have right now.

4 Likes