Paneling Tools Morph3D smooth morphing

Hello, in order the use the smooth morphing function of the Morph3d node, I need to input the surfaces of grid1 and grid2 which is the offset grid. But I don’t know how to convert them into a surface or the polysurface of the Brep I’m trying to panel. Also the offset that the offset grid node does, how can I recreate it to offset the original surface and input into surface for grid2?

01.3dm (360.1 KB)

01.gh (15.4 KB)

@tnc sorry for late reply.
I walked through your solution and you are almost there. I highly recommend that you start with a smaller surface with less dense grid to test the script so you can debug much quicker.

In the attached sample, I walked through the steps of one grid with the offset, then morph the 2D module smoothly (or rigid). I hope it helps.

01_RI.gh (23.0 KB)