LumaPictures / pymel

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

nodetypes.NurbsSurface.closestPoint() fails with an error returned #372

Closed windxu8 closed 7 years ago

windxu8 commented 8 years ago

Run script below:

import pymel.core as pm n = pm.nurbsPlane() s = pm.listRelatives(n[0],s=True)[0] p = s.closestPoint([0,0,0], True, tolerance=0.001,space='world')

It will fail with such an error: TypeError: unbound method get() must be called with SafeApiPtr instance as first argument (got list instance instead)

pmolodo commented 7 years ago

fixed in latest on github