Gradient mesh render

Please explain what and where to connect. I also found another script with an explanation, it worked well. preserve colors of baked mesh when exporting - Grasshopper