Hair mesh strips to spline

i’m looking for a maxscript that convert hair mesh strips object like as shown in attached image to spline for using as guidline hair …
can somebody informed me?

nice method … i’ll convert this to maxscript :]