Happy New Year! The MfnMesh class has a method called getClosestPoint that sounds like what you are looking for.
https://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__py_ref_class_open_maya_1_1_m_fn_mesh_html *Jake Kousholt* | Software Engineer / Pipeline TD jakejk.io <https://www.jakejk.io/> - GitHub <https://github.com/JakobJK> - LinkedIn <https://www.linkedin.com/in/jakobjk/> On Sat, 2 Jan 2021 at 05:13, Blackwell ST <[email protected]> wrote: > Happy New Years! > > I was wondering if anyone knew a method to query distance > (positional/translation) between 2 objects. To be specific, I'm trying to > query the distance between a CV point and the nearest vertice on selected > mesh. Hope that makes sense. > > > -- > 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/34ee98a8-7da2-4bb9-b156-3b7a0335d6a0n%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/34ee98a8-7da2-4bb9-b156-3b7a0335d6a0n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAEKd6bZMOT44aTW3NU1w2q3_HqbhFi3%2BuaSTgBVwLnTbh-%3DRzA%40mail.gmail.com.
