Download

Python API viewport selection

Hi all,
I have been using the python API to script the editor for quite some time now, and I have a simple question.
What I am trying to do is to control 2 viewports simultaneously (piloted through camera actors, moving the cameras, taking high-res screenshots, etc.)
There is a container class for the viewport, with all kinds of useful methods. Creating a viewport object without any reference initializes an “empty”, trivial viewport instance.
What I haven’t been able to do it to “get” a viewport, namely a function that will return either the active viewport or a list of all viewports.

Does anything of this sort exist?

Best Regards,
Tim