I been trying to get the new mesh format to work but no luck. I try to understand the import obj file and not sure how the faces work. As well for the uv texture. I am getting no where at this point. >.<
me = bpy.data.meshes.new("test") ob = bpy.data.objects.new("TestObject",me) bpy.data.scenes.objects.link(ob) verts = [(0,0,0),(2,0,0),(2,0,2)] faces = [(1,2,3)] me.vertices.add(len(verts)) me.tessfaces.add(len(faces)) me.vertices.foreach_set("co", unpack_list(verts)) me.tessfaces.foreach_set("vertices_raw", (faces))#not working
This fail to work. Any one?