hi all, i been using pymel for few months( at my home primarily). I noticed that if i store a selection of vertices (or edges or face) in some variable i am not able to call it back using select for eg.
# select some components of polySphere1 tempSel = ls (sl=1,fl=1) select (d=1) select(tempSel) # this just seletcs the first few vertices of object (which is not what is expected) # this will select the first vertes of what i have selectd whic is fine but i need to select all, hence i'm iterating select (tempSel[0].name) also if i select some single edge and use getVertices() method it works fine. #select any edge of polygon tempSel = ls (sl=1) conVerts = tempSel[0].getVertices() select (conVerts) # above works fine so why selection with `ls` is not working. i tried checking type of tempSel in first example , i think it's list of pynode objects that is why its not working is there a better way todo it. i want to store a selection and run polyAverageVertex over it... thanks sunnyC. --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
