When you click the "use nodes" button, the Principled BSDF node appears in the shader editor connected to the output node, and the properties of the Principled BSDF node appear in the Properties panel.
(a)I want to create a button like "use nodes" button that does this, but instead of adding a Principled BSDF node, your material node tree you have created will be added
(b) the properties of each node in the material will appear in the Properties panel.
How do I do this with Python? And is there a difference between eevee and cycles when I do this? I hope that the answer will be as I want and detailed as I am a beginner in programming
