Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Finding UV world position

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
975 Views, 1 Reply

Finding UV world position

Hey guys , my question is pretty simple. Is it possible to get world position of UV ? For example if I have mesh U = 0.1 V = 0.9, how can I find world XYZ of that place. 

Thank you

1 REPLY 1
Message 2 of 2
NandoStille
in reply to: Anonymous

Good question.

 

Btw I always wondered why the "CVs" section of the Channel Box isn't showing the vertex position really, but 0,0,0? The section comes up as soon as a point component is selected. It works for Curves (the example in the docs), but it never worked for Meshes or NURBS surfaces. What's the trick here, Autodesk?

 

2018-01-21 14_59_43-Autodesk Maya 2018_ untitled_   ---   pSphere1.vtx[203_204]....jpg

 

So, first you need to make sure you have vertices selected. UVs don't have a world position.

Either switch to vertex select mode:

 

2018-01-21 15_15_57-Marking Menu.jpg

 

or convert your uv selection to vertices:

 

2018-01-21 15_18_04-Marking Menu.jpg

 

Then you can lookup the world positions, 1. in the Component Editor:

 

2018-01-21 15_14_37-Component Editor.jpg

 

or 2. in the Modelling Toolkit:

 

2018-01-21 14_58_54-Autodesk Maya 2018_ untitled_   ---   pSphere1.vtx[255].jpg

 

or 3. you use this Python script to print the values in the Script Editor:

 

import maya.cmds as cmds

selectedVertices = cmds.filterExpand(ex=True, sm=31) 

for vtx in selectedVertices:
    print "%s : %s" % (vtx, cmds.pointPosition(vtx, w=True))

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report