I'm poking around in PyMel and OpenMaya trying to convert some pymel code. I was wondering if there is an OpenMaya equivalent of polyListComponentConversion
from Pymel?
Ultimately, I'm trying to convert my collected UV shells to faces like so. But PyMel is a bit slow on larger objects.
for uv_shell in shells:
# Get the faces as unicode
faces = pm.polyListComponentConversion(
mesh.map[shell],
fromUV=True,
toFace=True
)
Thanks in advance