Batch Render Selection of Named Views

Hi @nathanletwory I’d like to batch render a selection of my named views and not all of them.

Do you have a script to do that?

Not at the moment, no. But probably doable to add an option to BatchRenderNamedViews to look at selection maybe.

edit: that really depends on whether I can have access to the named views panel and the selection.

@maxsoder / @lars is it possible to find out in C# what named views are selected in the panel when it is open?

Thanks for the reply, it could also be a script I’d feed with a filtered list of named views through Grasshopper.

All the _BatchRenderNamedViews does is:

string filename = Path.Combine(folder, $"{nv.Name}.png");
_ = RhinoApp.RunScript($"-_NamedView _Restore \"{nv.Name}\" _Enter", false);
_ = RhinoApp.RunScript($"_Render", false);
_ = RhinoApp.RunScript($"-_SaveRenderWindowAs \"{filename}\" _Enter", false);
_ = RhinoApp.RunScript($"_CloseRenderWindow ", false);
1 Like

Ok, that doesn’t look impossible…

During the processing of all named views I currently see this [Unnamed-xx] info in the title bar of the render window. Ideally this would display the named view name ‘066’

A rendering session is separate from the view name, there is no control over that as far as I know. It’ll be filled out I think when the result is saved to disk (i.e. the render result is no longer unnamed).

1 Like

@nathanletwory It is not possible at the moment. I will add this to the bug tracker.

1 Like