This adds an Operator for automatic texture setup for the Principled BSDF
It is relativly context aware:
If no texture is connected
a file dialog opens to select a folder
if a texture is connected
the folder of that texture is used
if more than one texture collection is present in the folder
the textures can be filtered down using a commen base name the base name component is either lifted from the node label of the principled bsdf or can be entered in popup or file selector
The only thing i could not get to work was calling it from the shift-space menu.
(link to my full copy in dropbox: https://www.dropbox.com/s/yyttmk0b7b0bub7/node_wrangler.py?dl=0 )