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 mesh and it works very well. The problem I have with the > nurbssurface is that when I run my script Maya plant ... > Is someone already had this problem? > > That's the code: > > > ------------------------------------------------------------------------------------------------ > > ------------------------------------------------------------------------------------------------ > > shape = 'nurbsSphereShape1' > > dag_path = maya_api_utils.get_dag_path(shape) > mfn_nurbs = OpenMaya.MFnNurbsSurface(dag_path ) > > point = OpenMaya.MPoint(0.0, 3.116, 4.508) > u = MScriptUtil().asDoublePtr() > v = MScriptUtil().asDoublePtr() > > toto = mfn_nurbs.getParamAtPoint(point, u, v, False) > > > ------------------------------------------------------------------------------------------------ > > ------------------------------------------------------------------------------------------------ > >
-- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f819b8f9-4497-4363-b943-77b46db5a7a4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
