Optional: This code will create an image with the PBR material on  sphere for visualization.
To use this go to main.py set the path to the folder contiaining pbr subdirs in pbr_folders and run
This is not essential but generate a preview of how the material will look like.
The output will be saved as Material_View.jpg inside the folder of the specific PBR used.

Run on blender 4.1 (note this will need the .blend file to run)