This tutorial will explain the benefit of building procedural shader trees in you default rendering application and also what problems can arise due to that (moirée, roughness variation -uncapped entropy-, performance hit). Following a solution is provided with custom MEL scripts to streamline the process. Hope you like and click below for the scripts download link:
Gumroad link:
https://gumroad.com/l/yOOBX
Cloth shader inspired by Michaul Cauchi:
https://www.mikecauchiart.com/single-post/2017/01/23/Research-Tillable-images-and-cloth-shading
UV to Mesh script unmodified by Nyro from this post:
https://forums.cgsociety.org/t/how-to-flatten-polygon-geometry-in-maya/1544246/6
Brute-Force Texture Baking - Maya Tutorial and Scripts