Use API: import maya.OpenMaya as om selection = om.MSelectionList() om.MGlobal.getActiveSelectionList( selection ) iter = om.MItSelectionList( selection, om.MFn.kMesh ) dagPath = om.MDagPath() if iter: while not iter.isDone(): iter.getDagPath( dagPath ) meshFn = om.MFnMesh(dagPath) #Get UVSets for this mesh UVSets = [] status = meshFn.getUVSetNames( UVSets ) #Get all UVs for the first UV set. u = om.MFloatArray() v = om.MFloatArray() meshFn.getUVs( u, v, UVSets[0] ) print u print v iter.next()
-- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To post to this group, send email to python_inside_maya@googlegroups.com. To unsubscribe from this group, send email to python_inside_maya+unsubscr...@googlegroups.com.