Hi, why does the following script only work when in object mode.
I would have expected it only to work in edit mode, because it’s operating on individual components rather than the object as a whole.
What am I misunderstanding?
import bpy
selectedVerts = [v for v in bpy.context.active_object.data.vertices if v.select]
for vert in selectedVerts:
new_location = vert.co
new_location[0] = new_location[0] + 2
new_location[1] = new_location[1] + 2
new_location[2] = new_location[2] + 2
vert.co = new_location