Last active
August 13, 2020 10:28
-
-
Save Begalov/ab62b48eaf3d40e3ceaf4dba79686b0c to your computer and use it in GitHub Desktop.
Blender script to apply modifiers for not single user data
This file contains 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 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