Search code examples
pythoncoordinatesmayauv-mappingpymel

Pymel: finding UV coordinates for specified face


In pymel what would be the best way to find the Uv coordinates of a specified face (in this case the face is a quad and has its UVs are layed out just for that face so it is only connected to 4 UVs)

Thanks


Solution

  • you want to use

    cmds.polyEvaluate(uvComponent=true)
    

    The polyEvaluate command lets you get a bunch of different information about polygons in maya.

    https://help.autodesk.com/cloudhelp/2016/CHS/Maya-Tech-Docs/CommandsPython/polyEvaluate.html