Baking colours and ungroup them to get glass

hello all.

I have a script to color the object differently.

But I can’t get the individual colors like orange etc. to work as a group. I would like to have everything made of glass.

How can I make it so that 1. I get the individual colors as a group and 2. that I can color them in glass?

Also, when you render it, the colors don’t come up

Colouring.3dm (16.9 MB) (9.6 KB)

I would like to have this result

Duplicate thread