I made a Python component that takes a Grasshopper mesh with colored vertices, puts texture coordinates on it, and creates a texture image file. I translated this from Vicente Soler’s C# component that I found here.
I added the option to export the textured mesh to an OBJ file.
NB the texture map that this creates is vile. It’s just a pile of pixels, one for each mesh face corner in no particular order, so no meaningful unwrapping has been done and you can’t use it to paint. All you can do with it is use a renderer, or export to a file format, that doesn’t support color-by-vertex.
meshtextureobj.gh (9.9 KB)