Geometry Nodes Experts wanted.

I’m working on a starship where I want to add portholes which follow curves. I am working on this using Geometry Nodes and with Google and experimentation, I’ve got a working solution that is mechanically doing what I was hoping for it to do. So here is my result so far…

Here is the GN setup that is doing this. Basically, taking a Sphere, duplicating it x times (set as 3 here), squashes them flat and aligns them, then instances them along a Curve evenly spaced out.

Now, to add some more ‘realism’ I want to randomize the materials so that random groups of 3 will be a darker material to simulate the interior lights being OFF. Here’s a simulated photoshop image of desired result. Sets of the darker windows being just in random locations :

I’ve hit a wall trying to figure this out. I’ve tried both using Material Indexes on a Single Sphere, and then also using a Collection of (1) Light and (1) Dark Sphere to try to randomly pick from the collection to place at each point.

The end results no matter what I do is that I end up with ALL of them ON or ALL of them OFF.

I kind of understand that this setup ends up putting a single instance in all places at once, so it’s no logically possible to randomize differences at each point. But I feel like this is probably possible, I just can’t figure out a method to get there.

Hoping someone who knows better can either explain how to alter my setup or point me to a different way completely to get to the desired result.

Thanks in advance!!