How to change the grid with attractor point?

Hey :)

I'm trying to combine these two codes and I'm not sure where the batteries should be.
Basically, I want to be able to control the size of the Hexagon's holes with attractor point.
I would appreciate your help!

I have attached both Rhino and Grasshopper files.

Thank you,

Michal