Hi, as a disclaimer I never coded a single statement in Maya, anyway, if I get the issue right, it is a general programming task. If you need to store the color of each vertex of a variable size mesh, the best solution, in my opinion, is to use an array of arrays. It means you create an array as big as vertex count if in…