Convert procedural UV to standard mesh UV?

I found this, but will have to look at it with fresh head tomorrow