PDA

View Full Version : Find UV location in UV Space


Gísli
04-04-2009, 03:25 PM
Hi,

How do I find out the position of a UV point in UV space using preferable python code?

The numbers I want are shown in the top right part of the UV Texture editor Window.

This is what I was trying but I'm not getting the right output.

import maya.cmds as mc
abc = mc.pointPosition('item.map[1]')
print abc

Regards,
Gísli

Pyrokinesis
04-04-2009, 11:19 PM
First find your own way of selecting a UV, or converting selection to UV's

perhaps
m.eval("ConvertSelectionToUVs")

The command you want is polyEditUV, here is a simple example.
The return is a double.


selected = mc.ls(sl=True)
u = mc.polyEditUV(selected, q=True, uValue=True)
print u



Good Luck

CGTalk Moderation
04-04-2009, 11:19 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.