LumaPictures / pymel

Python in Maya Done Right
Other
479 stars 130 forks source link

The getEdgeVertices() function returns wrong values in the majority of cases #328

Open pmolodo opened 8 years ago

pmolodo commented 8 years ago

From skalman...@gmail.com on March 11, 2013 05:39:22

Most of the time, when using getEdgeVertices(), the function returns [0, 0] for the majority of edges.

If I execute the code below five times with a simple polyPlane selected...

---Start----

import pymel.core as pm selection = pm.ls(sl = True) node = selection[0]

edge_index = 2 node.getEdgeVertices(edge_index)

---End------

...the results looks like this:

Result: [0, 0]

Result: [0, 0]

Result: [0, 0]

Result: [1, 3] # (correct)

Result: [0, 0]

I have tested it on: Windows 8 Pro x64

Using:

When I'm using Maya 2013 x86 Educational Version with PyMEL 1.0.4, the results looks like this:

Result: [1, 3] # (correct)

Result: [0, 0]

Result: [0, 0]

Result: [907632248, 295]

Result: [1, 3] # (correct)

Original issue: http://code.google.com/p/pymel/issues/detail?id=294

pmolodo commented 8 years ago

From skalman...@gmail.com on March 11, 2013 05:44:43

By getEdgeVertices() I mean pymel.core.nodetypes.Mesh.getEdgeVertices(edgeId)