Python screen capture

Hi All,

I am trying to capture screen with a python script triggered by a an input change, the problem that is happening is that a viewport sometimes doesn’t refresh before the end of calculation. Is there an event that I could be listening to wait for a viewport refresh?

A delay timer doesn’t seem to help because the viewport is refreshing after the whole calulation is done.

Thank you for your help!


Jonas Blazinskas

Hi @Jonas-Blazinskas, maybe you can try to listen to the idle event ?

Alternatively, you might just try Rhino.RhinoApp.Wait() before capture.


1 Like

Hi Clement,

The Rhino.RhinoApp.Wait() seem to have worked! Thank you so much for your help!


Jonas Blazinskas