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.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/ab3cc08d-abe7-4dcd-9242-16d759f7dfc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.