I’m doing a script that list all the viewer nodes in my node tree with a “display” button.
How to display one of that node in the image editor?
Without python, we only need to click on a viewer node, and then the last active one will always be displayed. So, I tried :
context.scene.node_tree.nodes.active = selected_viewer_node selected_viewer_node.select = True
But it doesn’t behave like if the mouse button was pressed. What command should be send to tell to that viewer is the one to display?