Surface from Points...with a Sphere

Hi

I am trying to do a simple command… Surface from Points. However the points being generated are offset from a sphere. This complicates the U value input since the value changes along the surface. Plugging in u+1 still throws an error. Have I hit a dead end here or is there an easy solution to this?
Maybe a better component that can generate an enclosed surface?

Thanks,
Sam

Works for me but it’s not a sphere anymore:

Thanks it works fine now. I simplified my script to match yours and it seemed to like it better.