XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Find UV location in UV Space

04-04-2009, 03:25 PM

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


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


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.