is there any way to use selection tools from the python interface? I am working on a mesh creation script and I need a way to access the nearest vertex relative to a certain point.
This functionality is obviously present in Blender - how else is vertex selection or box selection possible in the GUI? But I can’t find any way to use it from Python!
What I really need is something like this (sorry for the pseudo code, I’m a total python noob):
VertexList GetNearestVertices(Object obj, Vec3D position, Int count)
VertexList GetVerticesInBox(Object obj, Vec3D point1, Vec3D point2)
Could you help me here? If this functionality is not present I would have to implement my own kd tree or octree, which seems pretty unnecessary to me.
Thanks in advance!