inv = tree.nodes['Invert'] #gets the already existing invert node by name
inv.inputs[0].default_value = [0.3]
# or inv.inputs['Fac'].default_value = [0.3]
this is realy simple. awsome. thanks for the snippet.
i was searching for something dificult, but blender does it the easy way.
also i thought the names wich are standing ontop of the nodes are just names of the effect, but now i realize thet when i add another node of the same type it got an suffix like nodename.000 so i can call it directly. awsome. thanks a lot.
I realize I’m digging up an old thread, but I figured this directly relates to my current situation, and I can’t find a thread more updated, and figured better than starting a new one for an issue that has already come up.
So, is this still the case, that we cannot access Node Sockets with Python? Seems incredibly important to the further advancement of Cycles, but all the stuff in this thread is the same information I’m finding everywhere else.