Hello,
I know how to get the vertices from an edge with maya.cmds, but I am trying 
to do the same thing using the api just for learning purposes.
This is what i have

import maya.OpenMaya as OpenMaya

cmds.polySphere(n="mySphere")

mSel = OpenMaya.MSelectionList()
mSel.add("mySphere")
mDag = OpenMaya.MDagPath()
mSel.getDagPath(0, mDag)
mDag.fullPathName()


mFnMesh = OpenMaya.MFnMesh(mDag)
edge = 634
mScpUtl = OpenMaya.MScriptUtil()
mScpUtl.createFromInt(0)
ref_int2 = mScpUtl.asInt2Ptr()


vtx = mFnMesh.getEdgeVertices(edge, ref_int2)

It don't get any error so I assume that the code is okey, but when I print 
vtx the result is None. I am not sure what I am missing. Any suggestion?
thank you,
R

-- 
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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/bb5180b4-d122-44c6-920a-fb04d7210f6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to