remove edge split modifier in selection

python - 2017-08-18 11:15:09
  supprime tous les modifiers edge split de la sélection
import bpy

for obj in bpy.context.selected_objects:
    if obj.type == ''MESH'':
        for m in obj.modifiers:
            try:
                obj.modifiers.remove(obj.modifiers.get("EdgeSplit"))
            except:
                pass