Python to control network view?

Hi there,

I’m working on a project and would like it to open to a particular network view on startup. Is there a way to do this with Python?

I have found the execute DAT which will let me do something on startup but am unsure if there is python that will make my project go to the root view and ‘home all’.

Thanks,

Chris

You can control quite a lot in the networkeditor with Python.
See the NetworkEditor Class, the Pane Class, and the Panes Class
The following code will adjust only your first pane to the root, homed to all nodes in view

p = ui.panes[0] p.owner = op('/') p.home(zoom=True)

Thanks Idzard! This worked a treat!