I found this python script to add a subdivision surface modifier to all objects
import bpy
#Iterate over all members inside the Object struct
for ob in bpy.data.objects:
#Check if object is a Mesh
if ob.type == 'MESH':
#Add a SUBSURF Modifier with the name "My SubDiv".
ob.modifiers.new('My SubDiv', 'SUBSURF')
Is it possible to modify this so that it instead changes the view setting of all subdision surface modifiers?