Is it possible to add a driver to a property in a shader using Python?
I managed to get driver_add working for other properties, but not shader properties. I can also print the property just fine.
selected_node = bpy.context.active_node
selected_node.driver_add("inputs[1].default_value", 0)
Do I need to format it differently for it to work?
The error message says
property "inputs[1].default_value" not found
The property itself is an input field of a Node Group I made by the way.
mat.node_tree.driver_add('nodes["My Node Name"].inputs[1].default_value', 0)
$\endgroup$D.materials[X].node_tree.animation_data.drivers[0].dath_path
to see what data path Blender actually creates. $\endgroup$