Bake surfaces

Hi everyone. I made this script but i can’t figure it out how to bake surfaces from the colors that already exist. I also want to make only 3 colors. Anyone know how i could do that?href=“”> (783.8 KB)

Get the Human plugin if you want to bake with colors.