You can add the objects to the MSelectionList by their name, sure. Or you can work with what you have selected in the viewport. I think you should read the docs.
but, MGlobal.getActiveSelectionList(MSelectionList) will fill that selection list with what you have selected in the viewport. -- 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/e0ce442f-9a64-4a72-86a5-8aac16bdb909%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
