I would like to add some nodes to the Texture Editor, I would like to edit their default values and then link them together..
I have found something on here that was helpful but they deviated to the Shader Editor and I could not seem to make the same thing work for me.
I have added some nodes but I don't know how to link them..
This is my attempt :
texture = bpy.data.textures.new('Texture Name', 'IMAGE') texture.use_nodes = True
inv_node = texture.node_tree.nodes.new(type= 'TextureNodeInvert') inv_node.location = 400,400 inv_node.select = False
disnoise_node = texture.node_tree.nodes.new(type= 'TextureNodeTexDistNoise') disnoise_node.location = 800,400 disnoise_node.select = False disnoise_node.inputs.default_value = 10
Ideally I want to add maybe only one node and be able to connect it to the output but I am not sure how to link added node to the output..
I would greatly appreciate someone pointing me towards some information..