This script is quite simple and I wrote it quite a while ago, when Maya haven’t had a default option to display the UVs on a mesh. It’s still helpful in some cases. The UV texture is created by nodes in Maya itself and doesn’t rely on external textures.

- Create new UVShader
- Creates a new shader with maya internal nodes
- Assign UVShader
- Assigns the material to all selected objects
- Reset Shader to Standard
- Reverts the assignment
- Select Objects with UVShader
- Selects all objects in the scene which have the material assigned
- Delete UVShader in Scene
- Deletes the material and all formerly created nodes


The node network is quite simple and consists of a color ramp, checkerboard and a grid