In this tutorial, you’ll learn how to streamline your material creation process in Unreal Engine using Python scripting and Editor Utility Widgets (EUWs). By automating the categorization of textures and the creation of master materials and material instances, you can significantly speed up your workflow, especially when dealing with large numbers of texture sets.
https://dev.epicgames.com/community/learning/tutorials/oLqe/epic-for-indies-automating-material-creation-in-unreal-engine-with-python