0
$\begingroup$

Like suppose i have 10 shader nodes , so code will check first how many nodes does selected object has then it creates operator for each one of them

Like 10 nnodes so we will have 10 buttons in the tools panel ,

So when we press anyof those button it will display nodes template

So basicall can any body point me in the right direction , like how do i iterate through nodes , anything that might come handy in learning

$\endgroup$
1
$\begingroup$

Here's the quickest way possible

for node in bpy.context.object.active_material.node_tree.nodes:
    print (node)
| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.