- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Solved: How to return to UV after selecting the face. - Autodesk Community - Maya
here raise the new problem!
I selected a face, and this face is composed of 4 vertices, 0, 1, 2, and 3. Then I went to get the coordinates of these 4 vertices from the UV, which can also be obtained. Unfortunately, the original model is a quadrilateral surrounded by 0, 2, 3, and 1 in order. The resulting list of UV coordinates is in the order of 0, 1, 2, 3, so I got the wrong value when calculating the area.
cmds.select(cmds.polyListComponentConversion(tuv = True))
lUVCoordinate = cmds.polyEditUV(query = True, relative=False)
print lUVCoordinateSo is there a better way to get the UV area or get these points in order. The Helen formula I used to calculate the area. Also, if they are all triangles, there is no such problem. However, the model has triangular and quadrilateral faces. If the length of the side is wrong and the diagonal is taken, the calculation will be wrong.
Solved! Go to Solution.