Sorry, it's actually: print arrMesh.faces[0].*getPoints*() > >
and try from pymel import Vector (I'm used to pymel 0.7.9, things might be a bit different with 0.9...) - Ofer www.mrbroken.com On Thu, Jun 4, 2009 at 2:38 AM, Dimitry <[email protected]> wrote: > > i put > print arrMesh.faces[0].getPositions() > or > print arrMesh.faces[0].getPosition() > > and got > > # AttributeError: 'MeshFace' object has no attribute 'getPositions' # > > and checked at pymel docs there is just getPosition for vertexes but > not for faces > > if i pasted > from pymel import * > v1=Vector([1,2,3]) v2=Vector([2,3,4]) > print v1+v2 print v1*2 print v2/2 > > I got error :( > # Error: name 'Vector' is not defined > # Traceback (most recent call last): > # File "<maya console>", line 2, in <module> > # NameError: name 'Vector' is not defined # > > i'm confused, i'm using latest pymel update on mac > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
