How to change Node Values

Hey guys,

I’m trying to change node values via python, but I keep getting errors. (I’m pretty shure it worked in the past)

What I tried:
Add a new node into any Nodetree. (I added a Value Node into the Compositing Tree)
Change a value and copy the line from the history and adjust the value in this line of code to anything you want.
Now by pressing enter theres just a error message.

I’m not sure if I’m doing something wrong or if thats a bug?


Found out that it’s a bug and reported it.
It’s basicly just the operator log thats showing a wrong command.
When I type: bpy.data.scenes[“Scene”].node_tree.nodes[“Value”].outputs[0].default_value = 0.7
everything works as expected.