# \#batch

**URL:** https://discourse.mcneel.com/tag/batch/413.md

[Latest](https://discourse.mcneel.com/latest.md) · [Categories](https://discourse.mcneel.com/categories.md) · [Tags](https://discourse.mcneel.com/tags.md)

---

## [Add a Grasshopper Plugin Folder Path via Script](https://discourse.mcneel.com/t/add-a-grasshopper-plugin-folder-path-via-script/205785)

<div class="topic-metadata">

**Author:** [@bbalbastre](https://discourse.mcneel.com/u/bbalbastre)\
**Replies:** 4\
**Last updated:** [June 16, 2025, 11:52am UTC](https://discourse.mcneel.com/t/add-a-grasshopper-plugin-folder-path-via-script/205785 "2025-06-16T11:52:36Z")

</div>

Hello everyone, When I run the GrasshopperDeveloperSettings command, I can manually add plugin folder paths so Grasshopper can load custom components from those directories. I’m wondering if there’s a way to add a fold…

---

## [How to "Maintain Source Layers" in a Make2D script - HiddenLineDrawing](https://discourse.mcneel.com/t/how-to-maintain-source-layers-in-a-make2d-script-hiddenlinedrawing/153690)

<div class="topic-metadata">

**Author:** [@Daniel\_Krajnik](https://discourse.mcneel.com/u/Daniel_Krajnik)\
**Replies:** 2\
**Last updated:** [April 20, 2025, 4:12pm UTC](https://discourse.mcneel.com/t/how-to-maintain-source-layers-in-a-make2d-script-hiddenlinedrawing/153690 "2025-04-20T16:12:05Z")

</div>

I’m trying to write a batch Make2D script for all detail viewports on selected layouts that maintains object layers. Just noticed that HiddenLineDrawingParameters.AddGeometry method takes objects’ geometry as an argument…

---

## [Batch Rename ALL Layers + SubLayers](https://discourse.mcneel.com/t/batch-rename-all-layers-sublayers/151558)

<div class="topic-metadata">

**Author:** [@luca4](https://discourse.mcneel.com/u/luca4)\
**Replies:** 9\
**Last updated:** [December 5, 2024, 2:09pm UTC](https://discourse.mcneel.com/t/batch-rename-all-layers-sublayers/151558 "2024-12-05T14:09:19Z")

</div>

Hi all, @Helvetosaur, @andheum, @pascal I need to batch rename, actually add a prefix, all layers and sublayers names of some files keeping layer ordering and layer::sublayer::subsublayer structure intact. I found alre…

---

## [Block Name Conflicts with "-Insert"](https://discourse.mcneel.com/t/block-name-conflicts-with-insert/146011)

<div class="topic-metadata">

**Author:** [@wortley.jb](https://discourse.mcneel.com/u/wortley.jb)\
**Replies:** 17\
**Last updated:** [November 15, 2024, 11:12am UTC](https://discourse.mcneel.com/t/block-name-conflicts-with-insert/146011 "2024-11-15T11:12:07Z")

</div>

Is there any way to force the “-Insert” command to keep the “model block” or “file block”, like the normal “Insert” command lets me do, rather than keeping both with a file name increment? If I insert with the dialogue …

---

## [Bug on .Bat to open rhino and a specific .gh file](https://discourse.mcneel.com/t/bug-on-bat-to-open-rhino-and-a-specific-gh-file/171959)

<div class="topic-metadata">

**Author:** [@Frusciante](https://discourse.mcneel.com/u/Frusciante)\
**Replies:** 9\
**Last updated:** [January 2, 2024, 9:34pm UTC](https://discourse.mcneel.com/t/bug-on-bat-to-open-rhino-and-a-specific-gh-file/171959 "2024-01-02T21:34:42Z")

</div>

So, I’m trying to write a .bat file that will open automatically rhino and a grasshopper simultaneously, the context is that I have a script that uses 6 different .3dm and 6 different .gh, but that is not important for t…

---

## [Running a Batch File to Open Rhino](https://discourse.mcneel.com/t/running-a-batch-file-to-open-rhino/172029)

<div class="topic-metadata">

**Author:** [@Frusciante](https://discourse.mcneel.com/u/Frusciante)\
**Replies:** 4\
**Last updated:** [December 21, 2023, 8:29pm UTC](https://discourse.mcneel.com/t/running-a-batch-file-to-open-rhino/172029 "2023-12-21T20:29:38Z")

</div>

Anyone has any idea why when one open rhino through a .bat file, the cmd doesn’t close until one closes rhino? Is there any work around?

---

## [Pls help with batch](https://discourse.mcneel.com/t/pls-help-with-batch/168047)

<div class="topic-metadata">

**Author:** [@spif](https://discourse.mcneel.com/u/spif)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 12:42am UTC](https://discourse.mcneel.com/t/pls-help-with-batch/168047 "2023-11-17T00:42:54Z")

</div>

You have a batch script, but it’s not perfect. You need it to delete everything except the specified paths, but it currently deletes everything. How can it be modified to delete everything except what’s specified in the …

---

## [Wish: accessing post effects via render command option](https://discourse.mcneel.com/t/wish-accessing-post-effects-via-render-command-option/166105)

<div class="topic-metadata">

**Author:** [@hitenter](https://discourse.mcneel.com/u/hitenter)\
**Replies:** 0\
**Last updated:** [September 23, 2023, 5:05pm UTC](https://discourse.mcneel.com/t/wish-accessing-post-effects-via-render-command-option/166105 "2023-09-23T17:05:03Z")

</div>

I haven’t really used the post effects and the other options available in the sidebar of the RenderWindow so far. Since I usually render batches via macro I don’t have any way to make use of these options. I wish there w…

---

## [Wish: dedicated render mode](https://discourse.mcneel.com/t/wish-dedicated-render-mode/166103)

<div class="topic-metadata">

**Author:** [@hitenter](https://discourse.mcneel.com/u/hitenter)\
**Replies:** 0\
**Last updated:** [September 23, 2023, 4:55pm UTC](https://discourse.mcneel.com/t/wish-dedicated-render-mode/166103 "2023-09-23T16:55:09Z")

</div>

When rendering batches via macro or script the ‘RenderWindow’ isn’t really necessary. for batches it is advantageous when all unnecessary operations aside from purely rendering (and saving as) are avoided. Currently the…

---

## [Run Rhino without GUI](https://discourse.mcneel.com/t/run-rhino-without-gui/146679)

<div class="topic-metadata">

**Author:** [@margari](https://discourse.mcneel.com/u/margari)\
**Replies:** 4\
**Last updated:** [August 18, 2022, 4:22pm UTC](https://discourse.mcneel.com/t/run-rhino-without-gui/146679 "2022-08-18T16:22:47Z")

</div>

Hello, I’d like to run Rhino without displaying any GUI from a batch file. In particular I’d like to: run Rhino in background execute a command from the Rhino command line close Rhino I found this documentation page…

---

## [Run Model Batch File after running input components](https://discourse.mcneel.com/t/run-model-batch-file-after-running-input-components/121741)

<div class="topic-metadata">

**Author:** [@rsm278](https://discourse.mcneel.com/u/rsm278)\
**Replies:** 5\
**Last updated:** [June 10, 2022, 5:20pm UTC](https://discourse.mcneel.com/t/run-model-batch-file-after-running-input-components/121741 "2022-06-10T17:20:43Z")

</div>

Hi, I am trying to automate a simulation that I have to run 1,000 times to do a sensitivity analysis. I would much rather not have to manually press “run” 1,000 times, but am running into an issue. I am using PANDO, whi…

---

## [Automatic "run timer" with batch](https://discourse.mcneel.com/t/automatic-run-timer-with-batch/141090)

<div class="topic-metadata">

**Author:** [@YWas](https://discourse.mcneel.com/u/YWas)\
**Replies:** 0\
**Last updated:** [April 14, 2022, 5:53am UTC](https://discourse.mcneel.com/t/automatic-run-timer-with-batch/141090 "2022-04-14T05:53:00Z")

</div>

Hi I am new to post and struggling a week about “automatic run timer”. I found automatic switcher from the link below and it seems nice to switch on/off automatically. https://discourse.mcneel.com/t/timer-for-button/10…

---

## [Whats is the best way to run a GH script in Batch](https://discourse.mcneel.com/t/whats-is-the-best-way-to-run-a-gh-script-in-batch/135874)

<div class="topic-metadata">

**Author:** [@quicova](https://discourse.mcneel.com/u/quicova)\
**Replies:** 1\
**Last updated:** [January 5, 2022, 4:17pm UTC](https://discourse.mcneel.com/t/whats-is-the-best-way-to-run-a-gh-script-in-batch/135874 "2022-01-05T16:17:51Z")

</div>

Hello everyone, I have done a GH script and now I need to run it in Batch mode. the objective is to change a couple of variables in panels and sliders and when the script finished running export the geometry into a .3d…

---

## [Handle program-level dialogs in batch processing](https://discourse.mcneel.com/t/handle-program-level-dialogs-in-batch-processing/126884)

<div class="topic-metadata">

**Author:** [@jacobgerlach](https://discourse.mcneel.com/u/jacobgerlach)\
**Replies:** 5\
**Last updated:** [July 20, 2021, 1:29am UTC](https://discourse.mcneel.com/t/handle-program-level-dialogs-in-batch-processing/126884 "2021-07-20T01:29:56Z")

</div>

I am trying to batch process a list of Rhino files. Rhino is one step in a longer processing chain, so I’m trying to use a .bat script to launch rhino with /runscript="-RunPythonScript…". I’m running the dashed version …

---

## [Simple BATCH File issue](https://discourse.mcneel.com/t/simple-batch-file-issue/111398)

<div class="topic-metadata">

**Author:** [@j.estevenssilva](https://discourse.mcneel.com/u/j.estevenssilva)\
**Replies:** 11\
**Last updated:** [November 3, 2020, 3:36pm UTC](https://discourse.mcneel.com/t/simple-batch-file-issue/111398 "2020-11-03T15:36:32Z")

</div>

Hello Everyone, I am needing a little help sorting this one: would like to trigger a specific Rhino file , from a Batch (\*.bat) file, and run a script on that \*.3dm file. I have seen/read here in the forum a few notes …

---

## [\[SOLVED\] Batch file problems](https://discourse.mcneel.com/t/solved-batch-file-problems/88148)

<div class="topic-metadata">

**Author:** [@kevs3dhub](https://discourse.mcneel.com/u/kevs3dhub)\
**Replies:** 3\
**Last updated:** [August 29, 2019, 12:37pm UTC](https://discourse.mcneel.com/t/solved-batch-file-problems/88148 "2019-08-29T12:37:55Z")

</div>

Hi Guys, I am using a batch file to load a %1 variable .stl file created by another program into grasshopper. It’s working with a controlled path without spaces: cd C:\\Users\\khann\\Desktop “C:\\Program Files\\Rhino 6\\Sy…

---

## [Macros and Rendering Crashes](https://discourse.mcneel.com/t/macros-and-rendering-crashes/45431)

<div class="topic-metadata">

**Author:** [@hitenter](https://discourse.mcneel.com/u/hitenter)\
**Replies:** 17\
**Last updated:** [November 15, 2017, 2:48pm UTC](https://discourse.mcneel.com/t/macros-and-rendering-crashes/45431 "2017-11-15T14:48:51Z")

</div>

it’s a nightmare today! I need to get renderings done. Scene and everything is set up. now I wanted to start a renderbatch with a macro like I always do. but rhino wip crashes everytime . try this: \_Render \_-SaveRende…

---

## [Batch -ViewCapturetoFile - Rhino + Python Novice](https://discourse.mcneel.com/t/batch-viewcapturetofile-rhino-python-novice/46409)

<div class="topic-metadata">

**Author:** [@Weston\_Norwood](https://discourse.mcneel.com/u/Weston_Norwood)\
**Replies:** 5\
**Last updated:** [August 9, 2017, 5:25pm UTC](https://discourse.mcneel.com/t/batch-viewcapturetofile-rhino-python-novice/46409 "2017-08-09T17:25:15Z")

</div>

I’ve found a few other threads to touch on the topic of scripting w/ -ViewCaptureToFile, but none of them seem to specifically address the problem I’m having. Problem: Script finishes running and successfully changes th…

---

## [Batch rendering with cycles](https://discourse.mcneel.com/t/batch-rendering-with-cycles/42069)

<div class="topic-metadata">

**Author:** [@hitenter](https://discourse.mcneel.com/u/hitenter)\
**Replies:** 19\
**Last updated:** [April 5, 2017, 5:18pm UTC](https://discourse.mcneel.com/t/batch-rendering-with-cycles/42069 "2017-04-05T17:18:21Z")

</div>

hi, if i had to render a lot i used to generate a simple macro with grasshopper. i could simply copy the data and paste it into the rhino console or drag n drop the output txt-file into the rhino viewport. instead of…
