Trying to translate mesh vertices colour highest colour value to face material transparency


I’m trying to write a code which would translate mesh vertex colour rgb highest value to transparency of the material applied to mesh face. It’s my first python script and i have some problem with sorting faces which i cannot solve. Can anyone help me with this issue? i attach rh file and my python (1.3 KB)

Untitled.3dm (622.9 KB)

What is the issue you are having with sorting faces?

– Dale

Thank you for your response! I’ve already managed to solve it other way round, but thank you anyway!