Last active
October 4, 2015 17:40
-
-
Save Pullusb/b7cfbc20bdeee9d75cce to your computer and use it in GitHub Desktop.
blenderSB assign autosmooth 30 degrees to objects
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 | |
from math import radians | |
# set smooth with auto-smooth active at 30 degrees | |
for o in bpy.context.selected_objects: | |
o.data.use_auto_smooth = True | |
o.data.auto_smooth_angle = radians(30) | |
for p in o.data.polygons: | |
p.use_smooth = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment