for ma in bpy.data.materials:
if ma.use_nodes:
ma.node_tree.nodes['Principled BSDF'].inputs['Alpha'].default_value=1
for ma in bpy.data.materials:
if ma.use_nodes:
ma.node_tree.nodes['Principled BSDF'].inputs['Alpha'].default_value=1