Surface divide using a gradient

I have a a short script written which I believe has most of the compenents I need to achieve what I want. However I’m still new to GH and I was wondering if someone could guide me. How do I use my evaluated points on surface to divide my surface in order for me to use surface morph. Surface morph currently works but I want it to happen with a gradient. s divide.3dm (131.9 KB)
surface (12.1 KB)