How do I create a variable of type "int2" in Python?

How do I create a variable of type "int2" in Python?

Anonymous
Not applicable
1,494 Views
1 Reply
Message 1 of 2

How do I create a variable of type "int2" in Python?

Anonymous
Not applicable

Hello all,

 

I am trying to use MfnMesh.getEdgeVertices(int, int2& edgelist) but I am unsure of how to create a variable of type int2.

 

Any help would be greatly appreciated,

 

Thanks,

 

Avi.

0 Likes
1,495 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

I found the solution myself.

 

OpenMaya.MScriptUtil.asInt2Ptr() //create

OpenMaya.MScriptUtil.getInt2ArrayItem //get

0 Likes