Collectively clear custom normals of all objects

I imported a file from 3ds max but all objects have custom normals, i want to clear all custom normals for all objects in one time not one by one. I even tried Alt+Click on it but that didnt work.

You can try this script. For me it works in 3.1.2


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()
3 Likes