LumaPictures / pymel

Python in Maya Done Right
Other
490 stars 131 forks source link

Mesh.getVertexNormals missing #426

Closed pmolodo closed 4 years ago

pmolodo commented 4 years ago

To reproduce:

import pymel.core as pm
mesh = pm.polyCube()[0].getShape()
mesh.getVertexNormal(0, angleWeighted=False, space='world')  # this works
mesh.getVertexNormals(angleWeighted=False, space='world')  # this doesn't exist

There's no reason I can see why this wrap isn't being created...

pmolodo commented 4 years ago

Added in develop branch: b546f10f3d1961965343a203c6215f0772dfa6a6

It turns out this function was simply disabled in apiToMelData - not sure why, possibly because of a legacy bug... or maybe because we couldn't easily get undo for the corresponding set functions...?

Anyway, I turned this function on, as well as:

'getVertexColors' 'getVertexNormals'

...and added tests.

Making another ticket to investigate the other disabled methods at some point:

https://github.com/LumaPictures/pymel/issues/428