Did you check the docs? The signature for the sets() function shows the selection list as being first.
http://download.autodesk.com/global/docs/maya2014/en_us/CommandsPython/sets.html That translates to meaning that it accepts one or more (or even a list of) items to be operated on, or the current selection if none are given. Then the doc for the specific addElement action says: Adds the selected items to the *given set* And at the bottom of the doc page, there are examples of the function being used to add and remove items from sets. Hope the helps for future usage issues. On Sun, 1 Feb 2015 10:08 AM null <[email protected]> wrote: > ahaha, oh geeze. > > Thanks Damon, I honestly dont think I would have ever figured that out. > > Kev > > -- > 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/deaf8ccd-3b49-4dec-8248- > 1be2d8164bd6%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/CAPGFgA0WbDYOH%3D-Ke4rRvuq2yRjsfjTSXuo3EEeCY7p%3DBieh4A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
