Gildor's Forums

Author Topic: I wrote a plugin that automatically reads textures from MAT&JSON files  (Read 780 times)
maylog
Newbie
*
Posts: 4


View Profile
I wrote a plugin that automatically reads textures from MAT&JSON files
« on: January 23, 2026, 12:08 »

As we all know, when exporting PSK files using UEmodel and importing them into Blender, you usually have to manually find the textures and connect them to the BSDF. In reality, all the needed textures are stored in *.mat & *.json files that share the same name as the shader. So I tried writing a plugin that semi-automatically loads the textures into the shader editor according to what's recorded in the mat files. I’ve tried it, and it’s super efficient when dealing with scene assets (like the environment assets in Let It Die).  

If anyone’s interested, you can search for MAT Helper in Blender’s Preferences under Add-ons, or just visit https://extensions.blender.org/add-ons/mat-helperr to get it. Have fun everyone!

« Last Edit: February 13, 2026, 16:26 by maylog » Logged
allenweisse
Newbie
*
Posts: 27


View Profile
Re: I wrote a plugin that automatically reads textures from MAT files
« Reply #1 on: January 27, 2026, 19:24 »

This is very cool! I have written a similar system in blender. How can I contact you? maybe we can compare methods and workflows.
Logged
maylog
Newbie
*
Posts: 4


View Profile
Re: I wrote a plugin that automatically reads textures from MAT files
« Reply #2 on: January 30, 2026, 13:50 »

You can see my source code directly on GitHub. If you're interested, you can fork it and submit your changes to me. GitHub address:

https://github.com/mayloglog/MAT-Helper
« Last Edit: January 30, 2026, 16:06 by maylog » Logged
masrawy2
Newbie
*
Posts: 7


View Profile
Re: I wrote a plugin that automatically reads textures from MAT&JSON files
« Reply #3 on: February 20, 2026, 00:37 »

As we all know, when exporting PSK files using UEmodel and importing them into Blender, you usually have to manually find the textures and connect them to the BSDF. In reality, all the needed textures are stored in *.mat & *.json files that share the same name as the shader. So I tried writing a plugin that semi-automatically loads the textures into the shader editor according to what's recorded in the mat files. I’ve tried it, and it’s super efficient when dealing with scene assets (like the environment assets in Let It Die).  

If anyone’s interested, you can search for MAT Helper in Blender’s Preferences under Add-ons, or just visit https://extensions.blender.org/add-ons/mat-helperr to get it. Have fun everyone!


Thank u mate for the plugin
I'm also wondering if you have any idea about .props files?
I find that in-game outfits and hairstyles are colorful, but when I export them, the colors are white or gray. Is there a solution to this problem? All games seem to be working this way now.
Logged
maylog
Newbie
*
Posts: 4


View Profile
Re: I wrote a plugin that automatically reads textures from MAT&JSON files
« Reply #4 on: February 20, 2026, 11:35 »

As we all know, when exporting PSK files using UEmodel and importing them into Blender, you usually have to manually find the textures and connect them to the BSDF. In reality, all the needed textures are stored in *.mat & *.json files that share the same name as the shader. So I tried writing a plugin that semi-automatically loads the textures into the shader editor according to what's recorded in the mat files. I’ve tried it, and it’s super efficient when dealing with scene assets (like the environment assets in Let It Die).  

If anyone’s interested, you can search for MAT Helper in Blender’s Preferences under Add-ons, or just visit https://extensions.blender.org/add-ons/mat-helperr to get it. Have fun everyone!


Thank u mate for the plugin
I'm also wondering if you have any idea about .props files?
I find that in-game outfits and hairstyles are colorful, but when I export them, the colors are white or gray. Is there a solution to this problem? All games seem to be working this way now.

This involves the synthesis of various parameters in UE. You need to manually adjust the bsdf shader or manually mix various mask maps.  Generally, there is no way to solve this problem simply by reading the parameter file.
Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS