Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Begalov/ab62b48eaf3d40e3ceaf4dba79686b0c to your computer and use it in GitHub Desktop.
Save Begalov/ab62b48eaf3d40e3ceaf4dba79686b0c to your computer and use it in GitHub Desktop.
Blender script to apply modifiers for not single user data
import bpy
for object in bpy.context.selected_objects:
bpy.context.view_layer.objects.active = object
bpy.ops.object.make_single_user(object=True, obdata=True, material=False, animation=False)
for mod in [m for m in object.modifiers]:
bpy.ops.object.modifier_apply(modifier=mod.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment