Use vertex color as input to Bitmap controller
In this tutorial I used a “Vertex Paint” modifier to paint on the surface and using the colors of the surface in a bitmap controller I modified a parameter of parametric array.
This approach works on 1D array while for 2D array you need to do some extra works to achieve the same effect.