Input script of Mix Shader node for create link? I am scripting an add-on and I need to create link between Glossy BSDF node and Mix shader node's &quot;shader&quot;
material_realistic_gold.node_tree.links.new(BsdfGlossy3_node.outputs[0], MixShader_node.outputs.inputs[0])
This is not working and get an error
Python: Traceback (most recent call last):
  File &quot;C:\Users\Yeung\Downloads\Shader 1.0\Script 001.blend\test.py&quot;, line 237, in execute
AttributeError: 'bpy_prop_collection' object has no attribute 'inputs'

location: &lt;unknown location&gt;:-1


What is the script of input shader of Mix material node?
I finally figure it out
I need to type
material_realistic_gold.node_tree.links.new(MixShader_node.inputs[1], BsdfGlossy3_node.outputs[0])