I've been reading through this thread
about UIDs and selection, but I'm not sure how I would loop through all the UIDs.
In particular, I am trying to determine the distance from an object to every instance of another object and then save the closest one. This involves looping through every UID of the object and checking the distance.
Does anyone have any idea how to do this?