Just throwing a random guess out there, but my guess is when you sort shellArea, you are losing the indexes of the mesh, and that's why it isn't working as expected. If I were to do this in Python, I'd instead do something like this: # Assuming that getUVShellArea is a Python function.shellArea = getUVShellArea() #…
ahh I see im gona try translating this in mel. I know i know python is better. but i dont have time to recode everything. This is part of a large procedure which has 800+ lines. Thanks for your help. I will post the solution up once i have something working.