Add texturehaven textues using bpy

Hi, does anybody have some sample code on how to import a downloaded texture using bpy? I just followed this tutorial and would like to script this behaviour.

I’m not sure there would be any point in trying to script that as the action itself is part of the Node Wrangler code anyway and you’d still need to select the relevant images. About the only thing you’d save would be adding a blank material and calling Node Wrangler.

1 Like

You can import a external image into Blender via

import bpy
PATH = "D:\\Textures\\PolyHaven\\Bricks.png", check_existing=False)