Navigate in hierarchy or show network editor part with python

Hi,

I’m trying to dynamically navigate in my network editor with python, like displaying a certain base on particular event (project1/myCurrentBase).
Using bookmarks and calling them would be eventually a solution (but not ideal). I’ve done some researches but can’t find anything… I guess I’m not searching with the good words because I can’t believe there’s nothing about it out there :slight_smile:
Could someone point me the right direction?
Thanks in advance

Check out the documentation for stuff like this. It can be a little bit of searching but you will find what you need.
In your case you will want to have a deeper look into the ui class and its children, mainly panes.
use ui.panes.cuurrent to get the currently selected pane.
You can now change the owner of given pane to any op. And also the style. So you can change it to OP viewer, network editor, sop viewer etc.

Happy UI Hacking :slight_smile:

1 Like

thank you, you’re spot on one more time! :slight_smile:
I’m a bit puzzled about the way the home function is working ( a bit inconsistent behaviour to me) but it is a detail

thanks for the good tips!