I'm sorry, i have an issue with the surface split part. It seems that my donut split with two lines-the interpolate one and the middle, and the curves didn't went through the whole donut, so I'm left with the part between the two lines and the rest of the donut. And umm... mine offset surface distance can only be set to 0 and 1 totally bizarre.
Here the modified python script for py3 import rhinoscriptsyntax as rs def offset_surface(input_surface, distance): offset_surface = rs.OffsetSurface(input_surface, distance) return offset_surface # Define input parameters input_surface = x # Assuming 'x' is the input surface distance = y # Assuming 'y' is the distance to offset # Call the function to perform offset offset_result = offset_surface(input_surface, distance) # Output the result a = offset_result