How to display a viewer node in image editor?


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 : = selected_viewer_node = 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?

Thanks! :slight_smile: