How do you create a variable of type int2 in python?

86 views
Skip to first unread message

AS

unread,
Jan 14, 2014, 8:38:38 PM1/14/14
to python_in...@googlegroups.com
Hello all,

I'm trying to use MfnMesh.getEdgeVertices(int, int2& vertexList)

However, I have no idea how to create a variable of type int2 in python.

Any ideas?

Thanks,

Justin Israel

unread,
Jan 14, 2014, 8:54:09 PM1/14/14
to python_in...@googlegroups.com
Using the Maya SDK Python API v1, you have to use MScriptUtil to be able to pass pointers into functions:

In Maya SDK Python API V2, they make it more pythonic where it returns the value instead of using output parameters:




--
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/581c8752-c661-4b38-8455-d13ca8da902a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages