Surface Partial Split Questions

Hello, I would like to ask you a question about the surface in the design.
I’d like to write a script that lifts the sheath on the surface in two forms as shown in the picture.
Please give me a good answer, and thank you.