Clear Custom Split Normals Data on all objects I am cleaning up a large file imported from another program with 500+ objects. All of these objects have Custom split normals that need to be cleared, and then Auto Smooth turned on. I know I can make changes to all selected objects at once by holding down Alt while changing a value or checking a box. However, this does not seem to work for pushing buttons, which is what you need to do to Clear Custom Split Normals Data.

Any ideas on how to do it to all my objects at once?
import bpy

selection = bpy.context.selected_objects

for o in selection:
    bpy.context.view_layer.objects.active = o
    bpy.ops.mesh.customdata_custom_splitnormals_clear()


This is the new code as the coding has changed a bit in 2.8