hey paul thats good news.. , i'm becoming big fan of pymel ( each passing day. even i am forgetting to put $ in mel) also it was connectedVertices() method i was using not getvertices(). i wrongly wrote in my first post.
many thanks sunnyC On Jul 18, 1:45 am, Paul Molodowitch <[email protected]> wrote: > Hey sunny - we're working on a new implementation of components in 9.2 > - I just tested it, and your code works on our current build. > So - not a very satisfying answer, I know, but - "We're working on it." > > - Paul > > In case you're interested - there's still a some bugs with our new > component implementation - mostly dealing with Subd components (which > are internally handled in a very different manner), and > multi-dimensional components (such as nurbs-surface cvs). > > On Fri, Jul 17, 2009 at 12:27 AM, sunny<[email protected]> wrote: > > 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 selected which 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. > > > -- > > myCG > >http://underearth.wordpress.com --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
