toshich
10-24-2003, 10:03 PM
Hello. This is my second question about maya's api.
First of all - sorry for my English. But i'll try to explain my problem.
I'll ask it in abstract terms, because it's general problem.
In my case i want to get some points from original mesh (poly) and create new object from these points using MEL via Global::executeCommand. My problem is that this new object created always in the center (0,0,0), and, as i can understand, without any transformations, that was aplied to original object (so points are in "wrong" positions).
I don't understand the main thing: when i get points from original object (i do it in k::World space), I though, that i have its "final" positions, but as i can see - it is not, i have "not real" positions of the points. Positions without any transformations, that was applied to original mesh.
Question is: how can i get "real" (or "final" or "after all transformations") positions of the points of the mesh?
(i thought that when i use k::World, i get it, but it isn't true :cry: ).
I hope that my text doesn't look like crazy with this "real" positions and e.t.c. :)
Thank you.
anton.
First of all - sorry for my English. But i'll try to explain my problem.
I'll ask it in abstract terms, because it's general problem.
In my case i want to get some points from original mesh (poly) and create new object from these points using MEL via Global::executeCommand. My problem is that this new object created always in the center (0,0,0), and, as i can understand, without any transformations, that was aplied to original object (so points are in "wrong" positions).
I don't understand the main thing: when i get points from original object (i do it in k::World space), I though, that i have its "final" positions, but as i can see - it is not, i have "not real" positions of the points. Positions without any transformations, that was applied to original mesh.
Question is: how can i get "real" (or "final" or "after all transformations") positions of the points of the mesh?
(i thought that when i use k::World, i get it, but it isn't true :cry: ).
I hope that my text doesn't look like crazy with this "real" positions and e.t.c. :)
Thank you.
anton.
