Sorry, my example was based on a mesh. I actually can't figure out the answer to your problem when the selected points on the nurb are kIsoparmComponent. They would seem compatible with a MFnDoubleIndexedComponent function set, yet they don't pass the run time inspection:
# get the component MObject # ... ar = [] om.MGlobal.getFunctionSetList(o, ar) print ar # [u'kBase', u'kComponent', u'kIsoparmComponent'] And I couldn't find any compatible function sets that actually allowed you to inspect each element. Maybe someone else knows the answer. I can only see how to deal with the string representation of the selection from MSelectionList.getSelectionStrings(). The selected UV values could be parsed and then the points looked up via MFnNurbsSurface.getPointAtParam().... but that seems janky. There must be a legit way to list the elements of that component. On Fri Jan 16 2015 at 11:57:29 <[email protected]> wrote: > Let me elaborate. I shift+Rclick on the nurbsSurface and drag down to > select "Surface Point". I shift click on the surface a few times and run > my code. > > -- > 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/5948fd77-e098-41ad-b0f1- > 774318e6c24f%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPGFgA0PtPjUH_bgXiKrsmq3fMEvW-E2SxPNanyf9bdjPM1zjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
