What is the python way to select vertices of a mesh?
for vert in obj.data.vertices: vert.select = True
I ran the above code in edit mode, but the vertices didn't turn yellow.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
import bpy,bmesh ob = bpy.data.objects['Cube'] mesh = bmesh.from_edit_mesh(ob.data) for v in mesh.verts: v.select = True # trigger viewport update bpy.context.scene.objects.active = bpy.context.scene.objects.active