Is it possible to write a script for Unreal Engine 4 about texture maps, in a way like if you add 5 texture maps in material editor of a particular material, to check if there’s “Roughness, Metallic and Occlusion” of a particular map and automatically connect the RGB nodes to the proper outputs.
For example, if you add 3 materials: Diffuse, Normal and RoughnessMetallicAO RGB, the script would uncheck sRGB like it’s supposed to be done and connect all maps to their proper places based on whether it contains “Diffuse” in name or “Normal” and etc.
I hope you understood my question.
Example to clarify:
And when you add it, the script checks their nameplates (names) and automatically connects them where they’re supposed to be.