Skip to content

Instantly share code, notes, and snippets.

@SuddenDevelopment
Created January 15, 2023 20:30
Show Gist options
  • Select an option

  • Save SuddenDevelopment/84ccee90547040820318d0a22116e3ff to your computer and use it in GitHub Desktop.

Select an option

Save SuddenDevelopment/84ccee90547040820318d0a22116e3ff to your computer and use it in GitHub Desktop.
Blender Python Script to Split all objects in a scene
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