I am scripting an add-on and I need to create link between Glossy BSDF node and Mix shader node's "shader"
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 "C:\Users\Yeung\Downloads\Shader 1.0\Script 001.blend\test.py", line 237, in execute
AttributeError: 'bpy_prop_collection' object has no attribute 'inputs'
location: <unknown location>:-1
MixShader_node.outputs.inputs
$\endgroup$