ok so on this....I have my UV coord, there is no function for converting that to a face and the examples im finding ONLY cover using a map ID not a random UV position, additionally, the code example actually doesnt even work
import
maya.cmds as cmds
import
maya.OpenMaya as OpenMaya
list
=
OpenMaya.MSelectionList()
sphereName
=
"pSphereShape1"
planeName
=
"pPlaneShape1"
list
.add(sphereName)
list
.add(planeName)
sphereObj
=
OpenMaya.MObject()
planeObj
=
OpenMaya.MObject()
list
.getDependNode(
0
, sphereObj)
list
.getDependNode(
1
, planeObj)
sphereMesh
=
OpenMaya.MFnMesh(sphereObj) # errors out here with # RuntimeError: (kInvalidParameter): Object is incompatible with this method #
planeMesh
=
OpenMaya.MFnMesh(planeObj)