invinci...@gmail.com
unread,Jun 2, 2016, 12:26:08 AM6/2/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Programming for Autodesk Maya
Hello guys,I try to write plugin script in Python, I read this example : apiSimpleShapeUI.cpp, and I got a problem.
In this function
void apiSimpleShapeUI::drawVertices( const MDrawRequest & request,M3dView & view ) const
{
...
MDrawData data = request.drawData();
MVectorArray * geom = (MVectorArray*)data.geometry();
...
}
I dont know how to use data.geometry() to cast to MVectorArray type.
My python script is:
geom = data.geometry()
but the type of geom is swigPyObject, not MVectorArray.
How can I do that? thanks a lot.