Replace Material Script

Does anyone have a material script that replaces x material with y material?

The example script floating around, fails to run at all even after editing to the correct material names.
I’ve been using python for like 10yrs with Maya but the way it works in Unreal has alluded me…

the link below if for free unreal editor python scripts github repository, u should be able to find something over there:

and if not, you can make a new script based on some pieces, there are multiple scripts in the repository that are around material stuff.

Also you can check the video series in there if you want to go further in making your own tools quickly.