[Bf-python] face.index?

joeedh joeeagar at prodigy.net
Sat Mar 19 09:02:24 CET 2005


Martin Poirier wrote:

>Why can't people just do this:
>
>import Blender
>
>mesh = Blender.NMesh.GetRaw("Plane")
>
>i = 0
>for v in mesh.verts:
>	v.index = i
>	i += 1
>	
>for f in mesh.faces:
>	print "Face: " + " ".join([str(v.index) for v in
>f.v])
>  
>
We should just make the bpy data structures have the ability to set 
custom members.  sortof like how you can set globals using the blender 
modules.  although I prefer the registry myself :)

joeedh



More information about the Bf-python mailing list