Grasshopper - grid with local extrusion and spacing control

Hello,

I am working on a parametric lamella/grid system on a freeform surface in Grasshopper.

Input:

  • an existing grid (see screenshot, top view) an

Goal:
I want the system to behave like this:

  • each lamella (grid line) should be extruded/deformed locally

  • at some points more, at others less

  • and this should be parametrically controllable across the surface

  • not only in one direction, but potentially in different axes (e.g. normal / Z variation)

Additionally:

  • the spacing between lamellae should be controllable (denser / more open areas)

  • the overall system should still read as a projected grid from top view
    → meaning: from above it looks like a regular grid (see image),
    but in 3D it becomes a locally deformed lamella field


Current issue:

  • deformation is not behaving consistently

  • difficult to control locally

  • curves don’t always remain clean after deformation


Question:
What is the best way to:

  1. control local extrusion/deformation of lamellae across a surface

  2. keep a clean grid logic in plan (top view)

  3. and simultaneously control spacing + deformation parametrically
    I addes a picture of a grasshopper script I created to try the but I didn’t work out

Use attractor curve/points, i think it will be a good fit for this design.