Created
January 15, 2023 20:30
-
-
Save SuddenDevelopment/84ccee90547040820318d0a22116e3ff to your computer and use it in GitHub Desktop.
Blender Python Script to Split all objects in a scene
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 | |
| for obj in bpy.context.scene.objects: | |
| obj.select_set(True) | |
| # split the mesh | |
| if obj.type == 'MESH': | |
| bpy.ops.mesh.separate(type='LOOSE') | |
| obj.select_set(False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment