# Batch Render Selection of Named Views

**URL:** <https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246>\
**Category:** Rendering\
**Tags:** windows\
**Created:** [December 11, 2023, 4:15pm UTC](https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246 "2023-12-11T16:15:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [December 11, 2023, 4:15pm UTC](https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246/1 "2023-12-11T16:15:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [December 11, 2023, 4:18pm UTC](https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246/2 "2023-12-11T16:18:18Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [December 11, 2023, 4:50pm UTC](https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246/3 "2023-12-11T16:50:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [December 11, 2023, 5:09pm UTC](https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246/4 "2023-12-11T17:09:45Z")

</div>

All the `_BatchRenderNamedViews` does is:

```csharp
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);

```

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [December 11, 2023, 5:18pm UTC](https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246/5 "2023-12-11T17:18:57Z")

</div>

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’

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/e/6/5e6bfe94205063b5406412ed497682a7580a48e2.png)

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [December 11, 2023, 5:24pm UTC](https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246/6 "2023-12-11T17:24:31Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![lars](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@lars](https://discourse.mcneel.com/u/lars)\
**Post date:** [December 12, 2023, 8:38am UTC](https://discourse.mcneel.com/t/batch-render-selection-of-named-views/171246/7 "2023-12-12T08:38:29Z")

</div>

> [@nathanletwory](#):
>
> @maxsoder / @lars is it possible to find out in C# what named views are selected in the panel when it is open?

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