Connecting node trees using blender api I am terribly confused why this is not working. I have followed similar examples and failed (i.e. Blender scripting connect nodes)
bpy.context.active_object.active_material.node_tree.links.new(bpy.data.materials[&quot;Material.001&quot;].node_tree.nodes[&quot;Principled BSDF&quot;].inputs[0], bpy.data.materials[&quot;Material.001&quot;].node_tree.nodes[&quot;ShaderNodeTexCoord&quot;].outputs[0])
If my code is too difficult to decipher, here's a summary: I am just trying to link the Texture Coordinate node output to the Base Color input of the Principled BSDF.
I wrote out the whole line above without using any variables in the aid of clarity/searchability.
Thank you all!
make sure your name is set to right value, not just the label.
&quot;