I am modifying an Import OBJ script. I want it to make all objects smooth, with Auto Smooth turned on, and with an auto_smooth_angle of 30º.
My edit is as follows: after
for mesh in new_objects:
I have added
bpy.ops.object.shade_smooth()
and it works as expected, but
bpy.context.object.data.use_auto_smooth=1
fails me. Any thoughts?
Just do clarify: I want this:
to become this: