Blender Python select vertices of a mesh with their index -
how can tell script select vertices of mesh within indecies stored in list? example, "currentface" contains verts 6,7,8; these verts create face.
now want select vertecies assign material them.
mesh.vertices[currentface].select = true # select mesh's currentface-verts bpy.ops.object.material_slot_assign() # assign selected material in mesh material-slot selected verts the console says lists not supported. there other way select vertices of mesh within index?
thanks in advance.
you can't use list index array. way work loop through each value in list -
for in currentface: mesh.vertices[i].select = true
Comments
Post a Comment