I am writing a script that allows me to add one vertex and I would like to know how I can select 3 vertices, which are always the same vertices. I’ve gone through the api and can’t seem to find anything. PLS help.
You could just have somthing like this:
def triSelect(obj, verts):
v = obj.data.vertices
for i in verts:
v[i].select = True
… then put your vertices in a variable:
myVerts = [1, 2, 3]
… then anytime you need to select those verts, just:
triSelect(yourObject, myVerts)
eta: This must be done in Object mode.
You could also add the verts to a vertex group and just select the vertex group.