make that
uvMap[0] instead of 1 (typo)

2013/1/15 Jan: <[email protected]>

> Found a workaround.
> Just kept it all in cmds:
>
> vtxNumber = 1
>
> sel = cmds.ls(sl = True)
> ## Get uvMap uv nrs
> uvMap = cmds.polyListComponentConversion(sel[0]+'.vtx[%s]' %vtxNumber,
> fromVertex = True, toUV = True)
> ## get uv coordinates (one of the uvMaps is enough.
> uvCoords = cmds.polyEditUV(uvMap[1] , query = True)
>
>
>
> 2013/1/15 Jan: <[email protected]>
>
> 1)
>> I ran into a wierd problem in maya 2013. (maya2012 seems to be fine)
>>
>> if you grab any polygon object and run:
>>
>> for x in range(0, 10):
>>     print  pm.selected()[0].getUVAtPoint(1)
>>
>> I seem to get on average a
>> 75% chance of getting [0.0, 0.0]
>> and 25% of the time the correct result.
>>
>> I've tested this on several machines. Now I presume this is a bug
>> somewhere in pymel.
>>
>> 2)
>> Does anyone know of another way of getting the vertex Coordinates in a
>> reliable way?!
>>
>> Thanks!
>> Jan
>>
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].


Reply via email to