So I have a simple grid surface of which boundary edges are static and I want to move individual vertices of the surface vertically. This movement is influenced by a point on another surface which I can control through TouchOSC and send the position of the point back to grasshopper. Attaching a diagram for explanation:
Let’s imagine that person is a moving point on lower surface that informs the movement of the upper surface. Upper surface would have every second vertice moving up and every other one moving down in regards to a distance to the person underneath.
I have created a similar definition that pulls the vertices from the surface using closest point component, however, in this case I want to control individual vertices and not move a point. Attaching an example of my current definition (which does not do what I want):
My problem is that even when I try to split vertices of the surface into 2 lists (1 is moving up and 1 is moving down) and put them back together, I mess up the branching or their exact index on the surface and the surface turns out wrong. Anyone has any idea how this could be done?responsive_movement.gh (14.8 KB)
EDIT: Attaching screenshot of a current script and .gh definition