I have Created a Material and Added Some Nodes using Python Script. Now I wan't To Add Some Nodes To Compositor using Python How to do that ? Can anyone tell that directly or Should I share the Code Which I wrote Earlier to create a Material and adding some diffuse and glossy nodes.
Finally I got the Answer and this Link Controling compositor by python has some Errors in the solution so i have finally solved this question with the help of that reference and thanks for Commenting the link Error is
# link nodes links = tree.links link = links.new(image_node.outputs, comp_node.inputs)
error in the second line
link = links.new(image_node.outputs, comp_node.inputs)
in place of link =,
According to me it will be links =