I have a tri mesh / editable mesh and I would like to set a random color per face on the mesh. I’m not quite sure how to do this? The only work around i found was to make it an editable poly and then assign them by face and converting back to mesh, which is not going to work for my end goal. What am i doing wrong here?
delete objects clearlistener() b = box width:10 height:10 length:10 widthsegs:1 heightsegs:1 lengthsegs:1 obj = convertToMesh b obj.showvertexColors = true defaultVCFaces obj for f = 1 to getNumfaces obj do ( local col = random blue red local faceVerts = getFace obj f for i = 1 to faceVerts.count do ( local v = faceVerts[i] setVertColor obj v col ) update obj )