Traverse in graph

33 views
Skip to first unread message

illunara

unread,
Dec 24, 2014, 3:45:43 AM12/24/14
to python_in...@googlegroups.com


Hi everybody
I attached a picture for easy visualization.
In deform() method, if i not mistake, the MItGeometry using the original mesh for iterate ( that's why it always return the same vertex's position), and the intermediate object is the one display in the viewport.
Basically, i need to get the vertex's position of deform mesh, but i stuck right now. I don't know how can i get the intermediate object.
Please help, thanks.


Eduardo Grana

unread,
Dec 24, 2014, 8:45:57 AM12/24/14
to python_in...@googlegroups.com
Hello!
I think the intermediate object is the one that is not visible in the viewport.
Regarding getting the input mesh (i think this may be what you need, forgive me
if i missunderstood) you can get it with MPxDeformerNode static attribute inputGeom, if you need the output mesh you can use outputGeom.
Hope this is usefull. :)
Merry Christmas!
Eduardo


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0f38a182-11ff-4718-bebb-ca667a72b474%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Tuan Nguyen

unread,
Dec 24, 2014, 10:17:47 AM12/24/14
to python_in...@googlegroups.com
oops,my bad. And yes, intermediate object is the one which hidden from scene. Anyway, outputGeom is the one i was looking for ( actually i want to get the deform vertex in worldspace), so basically, i will create an NPlug and get mesh from it?

Tuan Nguyen

unread,
Dec 24, 2014, 11:17:47 AM12/24/14
to python_in...@googlegroups.com
I try to create an MFnMesh from outputgeom but it gave me an error (kInvalidParameter): Object is incompatible with this method
Reply all
Reply to author
Forward
0 new messages