Batch Rendering

Hi team, I’m wondering if anyone has any expertise batch rendering out named views? Basically I have about 10 or so named views I need rendered and want to save the time to let each one finish then move to the next one, then render repeat.

I want to just set up all the named views, then click go and have them all rendered one after the other.

Does such a tool exist?

Food4Rhino
has a few options

1 Like

Thanks Will. Thea Render looks like it will work. I think Bongo will end up being cheaper for me however.

I appreciate the help. Thank you.

You can use the following script to render out all named views to a folder you are asked to specify at the start of the script.

import rhinoscriptsyntax
import scriptcontext
import Rhino

target = rhinoscriptsyntax.BrowseForFolder()

for nv in scriptcontext.doc.NamedViews:
    Rhino.RhinoApp.RunScript("-_NamedView _Restore \"" + nv.Name+ "\" _Enter", False)
    Rhino.RhinoApp.RunScript("_Render", False)
    Rhino.RhinoApp.RunScript("-_SaveRenderWindowAs \"" + target + "\\" + nv.Name + ".png\" _Enter", False)
    Rhino.RhinoApp.RunScript("_CloseRenderWindow", False)

This should work for any render engine, including Rhino Render.

Renders will be saved as PNG images in the location you selected using the name of each named view.

6 Likes

Oh I love this option … Thank you so much.

The only thing is I don’t really know how to run scripts other than just paste the text into the command line. Which I’ve done but then an import dialogue appears, I assume wanting to import several Libraries …

import rhinoscriptsyntax
import scriptcontext
import Rhino

I have no idea how to do this or where these libraries might be found.

I have actually completed a short course in Python, but I don’t really understand much about scripting in Rhino at this stage however.

I’m sure this is like the most simple thing for anyone familiar with the process … can anyone help a noob please? Hey I’m a designer not a programmer, never have been never will be.

Run the command _EditPythonScript, create an empty script and copy/paste the code.

You can then save the new script to some location on your computer. You’ll be able to use this in the future then as well.

2 Likes

Dear Mr. JesterKing, you are both a gentleman and a scholar.

If you ever need any help deciphering the difference between a pinkey mauve and a blue fuchsia please let me know :grin:

I’ll let you know! For now I think I’ll manage with just buying nice flowers for the missus every now and then :wink:

Brilliant one!Thank you for sharing. :smile:
And i compiled it to a “.rhp” plugin ,so we can make it to a button,more convenient. :smiley:
BatchRendering.zip (5.2 KB)