Created
October 13, 2022 20:43
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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