Having trouble with a data tree

I’m using Rhino 6, Grasshopper 1.0.0007.

I have a square grid. Each cell of the grid has a number of offsets. I also have an image with the same resolution as the grid. What I’d like to do is use the brightness values from the image to reduce the offsets.

I haven’t been able to figure out how to match up the brightness value of each pixel with the offsets of each cell. I’m going through videos, but I’m not very good at this. If anyone could help I’d really appreciate it.

Here’s the 3x3 image I’m using:
Offset Image 1

Here’s the definition. I hope it’s not too confusing:
Working Copy.gh (27.4 KB)

Thank you.


Working Copy_re.gh (13.8 KB)

1 Like

Ah! Thank you so much!

Hm. I don’t see anything. perhaps a version problem on my end?

Also, I was specifically intending to use the “random reduce” component, so I would get a clumpy random gradient, as opposed to the smooth gradient you generated.