Skip to content

Instantly share code, notes, and snippets.

@aaronjolson
Created June 9, 2018 22:09
Show Gist options
  • Save aaronjolson/7060e31829c624138588a8ac5c9e2ebf to your computer and use it in GitHub Desktop.
Save aaronjolson/7060e31829c624138588a8ac5c9e2ebf to your computer and use it in GitHub Desktop.
Blender select all verts on cube
import bpy,bmesh
ob = bpy.data.objects['Cube']
bpy.ops.object.mode_set(mode='EDIT')
mesh=bmesh.from_edit_mesh(bpy.context.object.data)
for v in mesh.verts:
v.select = True
# trigger viewport update
bpy.context.scene.objects.active = bpy.context.scene.objects.active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment