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: 

use 'cmds.xform()' to query position's problem

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
1263870289
219 Views, 5 Replies

use 'cmds.xform()' to query position's problem

when I use 'cmds.xform(v,q=True,ws=True,t=True)' to query the vertexes' position, the return result are the same while the actual vertexes are not in the same position.

aaa.png

Labels (2)
5 REPLIES 5
Message 2 of 6
1263870289
in reply to: 1263870289

It has been bothering me for a long time,hope someone can help me solve this problem.

Message 3 of 6
brentmc
in reply to: 1263870289

Strange. It works here.

Try printing out "v" in the loop to see what gets passed to xform.

Brent McPherson
Principle Engineer
Message 4 of 6
1263870289
in reply to: brentmc

Yes, most of the vertices are fine, but these two vertices that I select are not working.The file is below and the vertexes'name are 'Geo.vtx[635]' and 'Geo.vtx[2321]'

pro.png

Message 5 of 6
brentmc
in reply to: 1263870289

Hi,

 

The vertices are at the same location but appear different because you have smooth mesh preview enabled.

Tap the "1" hotkey to get out of smooth mesh preview and you will  see the vertices are at the same location.

vertex_smooth_position.gif


Note that you have a lot of triangles in the mesh and you really need to stick with quads for best results with subdiv meshes.

1) Mesh > Cleanup Options > Select matching polygons + 4-sided faces
2) Select > Inverse
screenshot_000223.png

Brent McPherson
Principle Engineer
Message 6 of 6
1263870289
in reply to: brentmc

Oh!It works!Many thanks for your help!

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

Post to forums