|
yea so i was on another forum asking how to get a hud display reading of x,y,z for selected vertices, polygons, and objects. so some guy gave me a code for python…
import maya.cmds as mc
sel = mc.ls(sl = True)
for node in sel:
vertPos = mc.xform(node, ws=True, q=True, t=True)
print vertPos
this code moves all the vertices when i try to move the selected vertice, so i just need to know how to reverse this.
also my original question would be nice to know as well (the hud display reading...etc..)
thank you :)
edit: this is on maya 2009
|
|
|
|
The example you posted does not move anything; it just prints the xyz position of the whatever is selected.
If you want to learn how to make a head-up display: I have an example at http://thnkr.com/wiki/index.php?title=Bounding_box_heads_up_display
|
|
|