Created
June 9, 2018 22:09
-
-
Save aaronjolson/7060e31829c624138588a8ac5c9e2ebf to your computer and use it in GitHub Desktop.
Blender select all verts on cube
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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