Maya Road Generator

This tool for Maya was written in Python and generates a road from a Bezier curve. The road has depth and side walls and is one continuous piece of geometry all the way around, even if you do not close the curve. The image to the left is set to 50 divisions so it looks a bit rough, however the divisions value can be increased for a smoother road. Supports at the proper height are also added after the road is generated. It works by taking a hard-coded set of verticies that make the road profile, moving them to position, and then linking it to the previous verticies.

It was a school project and I didn’t have enough time to add UV’s and texturing to it, but I’m happy with where I got in just a few weeks having never written any Maya scripts before.

You can click on the animated image to the left to see a larger version of it.

SOURCE CODE SOON