Selecting pattern consistently across curve

Hi everyone,

I am trying to do a paving project for a surface. I am using the running bond pattern, and I want to select some of the tiles based on a path I have set. I have managed to select the middle tiles based on the distance from the curve, but I want to additionally select more tiles in an organized sequence that would simulate a pixelized look around the curve, where I will be applying a different color. I have used the land kit(paving kit) plugin to generate the pattern, but I have baked the pattern for the question here.

Any help would be appreciated.
Pllakosja Sante.3dm (105.8 KB)


pllakosja sante 2.gh (2.0 MB)

Couldn’t you just use an attractor?

The quickest way to do this is to use statistics. You generate a random number and you multiply that number with some parameter that is between 0 and 1. To calculate that parameter you use the distance from the curve. The easiest way is to normalize it based on some maximum allowed distance ( d/dmax) That number should give you a probability of selection. Use another parameter to control where the cutoff is.