For the panelayout query are you getting a result? Also if you are running from script editor then it will most likely never be active.
For the sets, I believe the objects should be first and the set should be the value for addElement
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/e104dbb5-d349-4b3b-96f1-b6c5f4e4dd1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.
--
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/deaf8ccd-3b49-4dec-8248-1be2d8164bd6%40googlegroups.com.
string $currentPanel = `playblast -activeEditor`;
string $currentPanel = `getPanel -withFocus`;