How to render Custom Preview before python script

I’m trying to capture my named views to image files using a custom python component.
It works well except when I use the “Arctic” display mode.

The Custom Preview components doesn’t render the geometry until after I have captured the images.

I have tried to move the python component to the front to make it solve last, but it doesn’t work.
The most annoying part is that it worked one time, but never again.

Any suggestions on how to do this?


You are more likely to get help if you provide an example file.

Here is a simple example of my problem.
The pictures are generated, but they are always lagging behind because the image is being captured before the new geometry is rendered.

Capture (16.6 KB)