-
-
Save DarthMoulByte/4e0ff2aedbf6e49c319313036483630c to your computer and use it in GitHub Desktop.
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 | |
| obj = bpy.context.object | |
| bpy.ops.object.modifier_add(type='SUBSURF') | |
| for mod in obj.modifiers: | |
| if mod.type == "SUBSURF": | |
| obj.modifiers[mod.name].levels = 1 | |
| bpy.ops.object.modifier_apply(apply_as='DATA', modifier=mod.name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment