kFailure issue getClosestPoint maya 2015


#1

It seems like the getClosestPoint method is incredibly useful, and I’ve been looking at multiple examples, however i keep getting the same identical error. I am currently using maya 2015, and i’ve tried these examples with no success, I think it should be something i’m overlooking just confused.

Examples i’ve tested:

http://www.djx.com.au/blog/2013/07/09/mfnmesh-getclosestpoint-using-maya-python-api-2-0/

Error: (kFailure): Unexpected Internal Failure

Traceback (most recent call last):

File “”, line 22, in

RuntimeError: (kFailure): Unexpected Internal Failure

Error: (kFailure): Unexpected Internal Failure

Traceback (most recent call last):

File “”, line 27, in

File “S:\Maya_2015_DI\build\Release\runTime\Python\Lib\site-packages\maya\OpenMaya.py”, line 5818, in getClosestPoint

RuntimeError: (kFailure): Unexpected Internal Failure

Hopefully you guys could help me out and clear my confusion, Thank you