This script is meant to be used only in a specific workflow, when importing textures from Mari.
Usage: Choose the directory where the textures are stored. If the texture names contain the keywords of the mapping slots name like "Diffuse, bump, opacity.." then the script automatically suggest those textures to be assigned to the according slots.
By rightclicking the Assign button all the textures from all the mapping slots will be cleared.
(Note: in order to work properly, all the materials have to have "_tg" keyword and UDIM number(this is done automatically by waRp UpTile script) to their names)
This script was primarily meant to work with vray materials, but it has a support for standard materials as well.