This automatic .MAT loader creates a Blender material that can be applied to an object. Currently Only works when .MAT files are in the same directory as the textures.
FortniteCOD:MW - WarzoneRogue Company
Textures Supported - Diffuse, Normal, Specular, Emissive
- Download or Copy Auto Mat Loader.
- Download - Right Click -> 'Save As' - auto-mat-loader.py
- Copy - Click RAW -> 'Copy All' Ctrl + A -> 'Paste' Ctrl + C -
- Open Blender and in the top right, go to the 'Scripting' tab.
- Drag auto-mat-loader.py file into the large text box OR Paste the 'Raw' code there.
- After importing into Blender - Collect your exported .MAT file and .TGA textures (ONLY TGA)
-
Move the .MAT file(s) into the same folder as the textures
-
Move the textures to the same directory as the .MAT file(s) This was modified to deal with the most common cases.
-
Copy the full path of the .MAT file. Hold 'Shift' then right click in 'Windows Explorer' and then 'Copy As Path'.
-
From the 'Scripting' tab, paste the full path after "DotMatPath = r" - It should look something like:
DotMatPath = r"C:\PathToUmodelEtc\material.MAT"
-
There are two options available:
outputMaterialName
- Determines material name output. Blank matches the filename ex. (outputMaterialName = ""
)ApplyMaterialToCurrentlySelectedObject
- Applies material to the currently selected object.True
orFalse
is case-senitive.
-
Press "Run Script" at the top right.
https://i.imgur.com/4OMVs4T.mp4
Modified to work with Blender 2.83 LTS+