[Bf-python] vector types in NMesh.c

Ken Hughes khughes at pacific.edu
Thu Sep 1 07:07:05 CEST 2005


Joseph, keeper of the vector modules (also filling out a bug report when 
p.b.o stops crawling):

Just discovered this problem in 2.37a and recent CVS:

    import Blender

    mesh = Blender.NMesh.GetRaw('Cube')

    result = mesh.verts[0].uvco
    mesh.verts[0].uvco = tuple(result)
    mesh.verts[0].uvco = result

I get "AttributeError: Vector tuple or triple expected" in the last 
line.  I'd fix this (I'm tp_getseting NMesh.c now) but I honestly don't 
see a "clean" method to convert a vector back into a float array.  Maybe 
we need an complementaty operation for newVectorObject() ?

Ken



More information about the Bf-python mailing list