I would like to select only the vertices on the left side of my plane using Python (like on the screeenshot), does anybody have an idea how to do it ?
I try the following to get all vertices but i'm unable to isolate those on the left.
My actual code to get all the vertices:
bpy.ops.import_image.to_plane(
files=[{'name': os.path.basename(file)}],
directory=os.path.dirname(file)
)
obj = bpy.context.object
group = obj.vertex_groups.new(name = 'Group' + str(number))
index = 0
verts = []
for v in obj.data.vertices:
verts += [index]
index = index + 1
print(v.co)
group.add(verts, 1.0, 'REPLACE')