Hello I am currently trying to make an addon that involves connecting the shader node and the group. This is how I am approaching it however it returns a AttributeError referring node group as 'NoneType'. How can I connect shader nodes and node groups?
mat = bpy.context.object.active_material mat.use_nodes = True node_tree = mat.node_tree nodeGroup = node_tree.nodes.get("Shader group") #Shader group nodeDF = node_tree.nodes.new('ShaderNodeTexImage') #Shader node node_tree.links.new(nodeGroup.inputs, nodeDF.outputs) #Connecting the nodes
AttributeError: 'NoneType' object has no attribute 'inputs'