https://cgian.com/2023/01/blender-apply-material-to-all-selected-objects/
Blender apply material to all selected objects