Exporting rendered views when iterating

I’m using Colibri to iterate through a set of solutions, and export screenshots along the way.

This is working fine, but when using a rendered preview mode, each image is one step behind.

I guess this is because the rendered preview is drawn only after grasshopper finishes completely.

As a workaround, I am now baking (and deleting) the objects with a script, but I am wondering if there is a better way to trigger a rendering before an image export.


colibri_rendered_export.gh (19.1 KB)

Hi @nathanletwory, I saw you answered a few related posts, so I hope it is fine I address you directly.

Exporting views goes well for non-rendered display modes, but for a Rendered view I cannot get the viewport to update before exporting an image

also does not help unfortunately. Can you think of a way to make this work?

Did you try the script from a couple posts later?

Thanks for your suggestion. I tried the script before, but without luck.

To be sure, I just tried it again, and by chance I discovered a way in which it does work:

  • if the current display mode is set to Rendered, it won’t export the updated view
  • if the current display mode is set to any other, and you request a “Rendered” export, it does!

Thanks!

2 Likes