Skip to content

Instantly share code, notes, and snippets.

@Pullusb
Last active October 4, 2015 17:40
Show Gist options
  • Save Pullusb/b7cfbc20bdeee9d75cce to your computer and use it in GitHub Desktop.
Save Pullusb/b7cfbc20bdeee9d75cce to your computer and use it in GitHub Desktop.
blenderSB assign autosmooth 30 degrees to objects
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