Skip to content

Instantly share code, notes, and snippets.

@SuddenDevelopment
Created October 13, 2022 20:43
Show Gist options
  • Select an option

  • Save SuddenDevelopment/24e34825583d3fd516d5c6fa7423102a to your computer and use it in GitHub Desktop.

Select an option

Save SuddenDevelopment/24e34825583d3fd516d5c6fa7423102a to your computer and use it in GitHub Desktop.
Blender Python to select all duplicates of selected object from vertex count and position
import bpy
objTarget = bpy.context.active_object
for obj in bpy.data.objects:
isSame = True
if obj.type != objTarget.type:
isSame = False
if len(obj.data.vertices) == len(objTarget.data.vertices) and isSame == True:
for i,vert in enumerate(obj.data.vertices):
if isSame == True and objTarget.data.vertices[i].co == vert.co:
continue
else:
isSame = False
else:
isSame = False
obj.select_set(isSame)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment