Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- from bpy import context
- scene = context.scene
- TOL = 0.1 # get all objects within 0.1 bu of loc
- #use cursor for location
- loc = scene.cursor_location
- obs_in_location = [o for o in scene.objects
- if (o.matrix_world.translation - loc).length < TOL]
- print(len(obs_in_location), " at ", loc)
- if len(obs_in_location):
- for o in obs_in_location:
- print("t", o.name)
Add Comment
Please, Sign In to add comment