Python: After linking texture to material how do I add it to blenders texture list?

by Invariant   Last Updated August 14, 2019 03:15 AM - source

So I have created an image texture using python in 2.80, and linked it to the material and that shows fine.

However in the property editor under texture it does not show up in the list.

I tried many things, and cannot find an answer online.

Does anyone know how to do that?

texIm = material.node_tree.nodes.new('ShaderNodeTexImage')
texIm.image = self.loadImage("test")
#how to add that to the texture list in property editor?
Tags : python import


Related Questions



BlenderGIS import call from python script

Updated May 09, 2016 08:06 AM

Import multiple files from any blender addon

Updated April 29, 2019 11:15 AM

Does an assimp based importer already exist?

Updated June 23, 2019 16:15 PM

Install Python module for Blender

Updated March 13, 2017 18:15 PM