[Maya-Python] Re: MFnNurbsSurface Crash

2015-09-09 Thread Rémi Deletrain
This is actually due to the tolerance ... Thank you very much again !!! Le mercredi 9 septembre 2015 10:24:37 UTC+2, Rémi Deletrain a écrit : > > Hello everyone, > > I am trying to retrieve a position of a uv nurbssurface from a point in > space. > For this I use the Maya API. > > I tried with a

Re: [Maya-Python] Re: MFnNurbsSurface Crash

2015-09-09 Thread Jefri Yeh
I think that's because you are giving the MPoint position outside the nurbs surface range. Try pick a point on the surface and run it again. I've quickly tested it and that seems to be the reason of # RuntimeError (kInvalidParameter): value not in valid range # error. On Wed, Sep 9, 2015 at 9:13

[Maya-Python] Re: MFnNurbsSurface Crash

2015-09-09 Thread Rémi Deletrain
Actually I do not have the crash problem. Many thank you r4inm4ker! But now I have an error : # RuntimeError (kInvalidParameter): value not valid in ranks # while I give (MPoint, double, double, bool). Well I guess the problem is MPoint, but I do not understand why. He requested a position and I