# Scripting

**URL:** https://discourse.mcneel.com/c/scripting/11.md

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

---

## [Category definition for Scripting](https://discourse.mcneel.com/t/category-definition-for-scripting/242)

<div class="topic-metadata">

**Author:** [@stevebaer](https://discourse.mcneel.com/u/stevebaer)\
**Replies:** 3\
**Last updated:** [July 6, 2013, 2:53pm UTC](https://discourse.mcneel.com/t/category-definition-for-scripting/242 "2013-07-06T14:53:27Z")

</div>

Topics related to RhinoScript and Python scripting. Syntax Highlighting: Format and highlight your script code by fencing your code block within three back ticks. If you name the language your script is in, you get s…

---

## [Rhino WIP Feature: Grasshopper 2 Script Components](https://discourse.mcneel.com/t/rhino-wip-feature-grasshopper-2-script-components/205260)

<div class="topic-metadata">

**Author:** [@eirannejad](https://discourse.mcneel.com/u/eirannejad)\
**Replies:** 32\
**Last updated:** [October 22, 2026, 7:22pm UTC](https://discourse.mcneel.com/t/rhino-wip-feature-grasshopper-2-script-components/205260 "2026-10-22T19:22:28Z")

</div>

First working draft of Grasshopper 2 Script Components are in Rhino WIP. This is the first iteration of these components and there is still a long road to feature parity with Grasshopper 1. But they are there and they ar…

---

## [Issue with Rhino.Geometry.Mesh.IsPointInside()](https://discourse.mcneel.com/t/issue-with-rhino-geometry-mesh-ispointinside/222493)

<div class="topic-metadata">

**Author:** [@Roberto\_Neto](https://discourse.mcneel.com/u/Roberto_Neto)\
**Replies:** 21\
**Last updated:** [October 21, 2026, 12:19am UTC](https://discourse.mcneel.com/t/issue-with-rhino-geometry-mesh-ispointinside/222493 "2026-10-21T00:19:08Z")

</div>

I would like to report this bug on mesh.IsPointInside(). I found other posts mentioning something similar, but they are all quite old and related to rhino 7 (I’m using rhino 8). To put it simple, mesh.IsPointInside() is…

---

## [Wrong displacement behavior](https://discourse.mcneel.com/t/wrong-displacement-behavior/222461)

<div class="topic-metadata">

**Author:** [@Guillaume\_Chereau](https://discourse.mcneel.com/u/Guillaume_Chereau)\
**Replies:** 3\
**Last updated:** [October 21, 2026, 12:19am UTC](https://discourse.mcneel.com/t/wrong-displacement-behavior/222461 "2026-10-21T00:19:00Z")

</div>

Hello ! I’ve recently discovered that, while getting a mesh, created with displacement map, for the first time, the API sees the mesh as before its transformation. This also happens each time the assigned material i…

---

## [Rename "RunPythonScript" in Undo](https://discourse.mcneel.com/t/rename-runpythonscript-in-undo/51508)

<div class="topic-metadata">

**Author:** [@spb](https://discourse.mcneel.com/u/spb)\
**Replies:** 6\
**Last updated:** [October 20, 2026, 10:52pm UTC](https://discourse.mcneel.com/t/rename-runpythonscript-in-undo/51508 "2026-10-20T22:52:52Z")

</div>

Is there a way to set the “RunPythonScript” to a custom string so scripts can be distinguished from each other in the Undo Multiple window? Thank you, Steve

---

## [Script editor in read only mode](https://discourse.mcneel.com/t/script-editor-in-read-only-mode/206942)

<div class="topic-metadata">

**Author:** [@armin](https://discourse.mcneel.com/u/armin)\
**Replies:** 6\
**Last updated:** [October 20, 2026, 6:46pm UTC](https://discourse.mcneel.com/t/script-editor-in-read-only-mode/206942 "2026-10-20T18:46:38Z")

</div>

I´m not able to edit the python-script. The editor tells me it is in read only mode. Is there a way to change it?

---

## [Issue with breakpoints and exception handling in the Script Editor](https://discourse.mcneel.com/t/issue-with-breakpoints-and-exception-handling-in-the-script-editor/222424)

<div class="topic-metadata">

**Author:** [@shanew06](https://discourse.mcneel.com/u/shanew06)\
**Replies:** 2\
**Last updated:** [October 20, 2026, 12:34am UTC](https://discourse.mcneel.com/t/issue-with-breakpoints-and-exception-handling-in-the-script-editor/222424 "2026-10-20T00:34:03Z")

</div>

Hi All, When trying to run to a breakpoint after an Exception has been raised (and handled), the editor will not stop on the breakpoint. The example code below shows this. If I put a breakpoint on the call to “second\_f…

---

## [Make2d set output layers](https://discourse.mcneel.com/t/make2d-set-output-layers/117473)

<div class="topic-metadata">

**Author:** [@AleksandarSM](https://discourse.mcneel.com/u/AleksandarSM)\
**Replies:** 3\
**Last updated:** [October 16, 2026, 4:20pm UTC](https://discourse.mcneel.com/t/make2d-set-output-layers/117473 "2026-10-16T16:20:04Z")

</div>

Hi, is there a way to script make2d command with defining output layers in Rhino 7, in way like in Rhino 5? in rhino 5 I was using rs.Command(" -Make2D DrawingLayout=CurrentCplan " +"ShowTangentEdges=Yes " +"CreateHid…

---

## [Brick model importer and other scripts, a small update](https://discourse.mcneel.com/t/brick-model-importer-and-other-scripts-a-small-update/223662)

<div class="topic-metadata">

**Author:** [@jesterking](https://discourse.mcneel.com/u/jesterking)\
**Replies:** 0\
**Last updated:** [October 16, 2026, 12:49pm UTC](https://discourse.mcneel.com/t/brick-model-importer-and-other-scripts-a-small-update/223662 "2026-10-16T12:49:23Z")

</div>

Continuing the discussion from LEGO Importer, Sky Ranger I have picked up recently my Literate Programming extension for VS Code. I have added code completion and PDF publication support to it. The code completion (util…

---

## [Disabling output to command history window](https://discourse.mcneel.com/t/disabling-output-to-command-history-window/3113)

<div class="topic-metadata">

**Author:** [@powerpp](https://discourse.mcneel.com/u/powerpp)\
**Replies:** 8\
**Last updated:** [October 7, 2026, 11:28pm UTC](https://discourse.mcneel.com/t/disabling-output-to-command-history-window/3113 "2026-10-07T23:28:00Z")

</div>

Hello, is there a way to do this? Especially when using rs.command (for example \_SelCrossing) in a loop there is generated much output, that cannot be disabled with echo = False. Have a nice Evening! Philip

---

## [RhinoCode: can Python commands use ordinary command behavior?](https://discourse.mcneel.com/t/rhinocode-can-python-commands-use-ordinary-command-behavior/223024)

<div class="topic-metadata">

**Author:** [@Stefano\_Menci](https://discourse.mcneel.com/u/Stefano_Menci)\
**Replies:** 1\
**Last updated:** [October 2, 2026, 3:49pm UTC](https://discourse.mcneel.com/t/rhinocode-can-python-commands-use-ordinary-command-behavior/223024 "2026-10-02T15:49:07Z")

</div>

My plug-in is written in Python and built with RhinoCode, which generates C# command wrappers. Setting a command’s type to Normal still generates a wrapper with CommandStyle(Style.ScriptRunner). Consequently, commands c…

---

## [BETA - EditPythonScript](https://discourse.mcneel.com/t/beta-editpythonscript/222481)

<div class="topic-metadata">

**Author:** [@Erdem](https://discourse.mcneel.com/u/Erdem)\
**Replies:** 25\
**Last updated:** [September 29, 2026, 10:20pm UTC](https://discourse.mcneel.com/t/beta-editpythonscript/222481 "2026-09-29T22:20:11Z")

</div>

Hello everyone, In my system editpythonscript command is not initializing the editor panel. Also none of the commands or macros that include running this command doesn’t work either. Has anybody else the same problem?

---

## [Issue forcing custom OpenCV version in Python3](https://discourse.mcneel.com/t/issue-forcing-custom-opencv-version-in-python3/222332)

<div class="topic-metadata">

**Author:** [@ar0551](https://discourse.mcneel.com/u/ar0551)\
**Replies:** 5\
**Last updated:** [September 29, 2026, 10:20pm UTC](https://discourse.mcneel.com/t/issue-forcing-custom-opencv-version-in-python3/222332 "2026-09-29T22:20:05Z")

</div>

I am having an issue with trying to downgrade a version of OpenCV for a Python3 script in Grasshopper, as I need some functions which have been removed in the newer OpenCV version that ships with the current Rhino releas…

---

## [Insert on a nested (reference) block definition creates a ghost object](https://discourse.mcneel.com/t/insert-on-a-nested-reference-block-definition-creates-a-ghost-object/222874)

<div class="topic-metadata">

**Author:** [@jirrivdb](https://discourse.mcneel.com/u/jirrivdb)\
**Replies:** 4\
**Last updated:** [September 28, 2026, 10:39am UTC](https://discourse.mcneel.com/t/insert-on-a-nested-reference-block-definition-creates-a-ghost-object/222874 "2026-09-28T10:39:32Z")

</div>

Hi McNeel team. We have ran into a bug with linked blocks that sometimes causes kind of ghost objects to appear. I have used Claude and the Rhino MCP to get to the bottom of this and provide a reproducible example outsid…

---

## [Gable roof script](https://discourse.mcneel.com/t/gable-roof-script/217557)

<div class="topic-metadata">

**Author:** [@joya](https://discourse.mcneel.com/u/joya)\
**Replies:** 3\
**Last updated:** [September 23, 2026, 11:01am UTC](https://discourse.mcneel.com/t/gable-roof-script/217557 "2026-09-23T11:01:42Z")

</div>

Hello I’m just starting to learn about Python scripting. I would like to write a script for a gable roof. Simply a box with a triangle on it, but as one solid. And I’m racking my brains over how best to approach it. Id…

---

## [Make Eto Color Picker Without Dropdown Menu?](https://discourse.mcneel.com/t/make-eto-color-picker-without-dropdown-menu/222825)

<div class="topic-metadata">

**Author:** [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Replies:** 3\
**Last updated:** [September 18, 2026, 3:50pm UTC](https://discourse.mcneel.com/t/make-eto-color-picker-without-dropdown-menu/222825 "2026-09-18T15:50:30Z")

</div>

Hi All, I’m in week 1 of learning Eto, having great fun/results so far. This might be obvious, but can one make this color picker (i.e. you click the color swatch and there is no drop down menu on the right) in Eto? …

---

## [How do I change material base color image settings with Python?](https://discourse.mcneel.com/t/how-do-i-change-material-base-color-image-settings-with-python/222253)

<div class="topic-metadata">

**Author:** [@Jaxx](https://discourse.mcneel.com/u/Jaxx)\
**Replies:** 15\
**Last updated:** [September 18, 2026, 8:25am UTC](https://discourse.mcneel.com/t/how-do-i-change-material-base-color-image-settings-with-python/222253 "2026-09-18T08:25:38Z")

</div>

Whenever I create a new material from a jpeg-image I drag onto an object in the rhino model, that image is by default set as the bitmap texture for the base color of a newly created material, named after the filename of …

---

## [Does numeric\_stepper.FormatString = "P0" cause problems in Macs?](https://discourse.mcneel.com/t/does-numeric-stepper-formatstring-p0-cause-problems-in-macs/222648)

<div class="topic-metadata">

**Author:** [@webdunce](https://discourse.mcneel.com/u/webdunce)\
**Replies:** 4\
**Last updated:** [September 16, 2026, 4:59pm UTC](https://discourse.mcneel.com/t/does-numeric-stepper-formatstring-p0-cause-problems-in-macs/222648 "2026-09-16T16:59:37Z")

</div>

I have lots of slider/stepper combos. Some of them deal in units (mm) and some might deal in factors, but I want the user to see percentages. Gemini suggested using FormatString = “P0” but then told me Mac users might e…

---

## [(ETO Forms) Slider and NumericStepper Coordination](https://discourse.mcneel.com/t/eto-forms-slider-and-numericstepper-coordination/222683)

<div class="topic-metadata">

**Author:** [@webdunce](https://discourse.mcneel.com/u/webdunce)\
**Replies:** 3\
**Last updated:** [September 16, 2026, 11:46am UTC](https://discourse.mcneel.com/t/eto-forms-slider-and-numericstepper-coordination/222683 "2026-09-16T11:46:23Z")

</div>

Some months ago, some AI recommended that my sliders have a coarse increment (say, 0.10) and that it’s related NumericStepper should have a more refined increment (say 0.05). Now AI is telling me that having the stepper…

---

## [SyntaxWarning - py313-rh9\\site-rhinopython\\rhinoscript\\utility.py:706](https://discourse.mcneel.com/t/syntaxwarning-py313-rh9-site-rhinopython-rhinoscript-utility-py-706/222113)

<div class="topic-metadata">

**Author:** [@AYuA](https://discourse.mcneel.com/u/AYuA)\
**Replies:** 2\
**Last updated:** [September 16, 2026, 8:31am UTC](https://discourse.mcneel.com/t/syntaxwarning-py313-rh9-site-rhinopython-rhinoscript-utility-py-706/222113 "2026-09-16T08:31:33Z")

</div>

Hi there. Rhino shows this worning. C:\\Users\\XXXX\\.rhinocode\\py313-rh9\\site-rhinopython\\rhinoscript\\utility.py:706: SyntaxWarning: invalid escape sequence ‘\\s’ vector (Vector3d|Point3d|Point3f|Vector3f\\str|guid|\[numbe…

---

## [ETO: How To Remove Top Left Icon?](https://discourse.mcneel.com/t/eto-how-to-remove-top-left-icon/222687)

<div class="topic-metadata">

**Author:** [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Replies:** 6\
**Last updated:** [September 15, 2026, 5:17pm UTC](https://discourse.mcneel.com/t/eto-how-to-remove-top-left-icon/222687 "2026-09-15T17:17:47Z")

</div>

Hi all, With the current Grasshopper Remote Control Panel situation being what it is, I’m dipping my toe into ETO as a potential framework for making my Grasshopper GUIs. Anywho, first question: How does one remove this…

---

## [Rhino fails to install Python runtime](https://discourse.mcneel.com/t/rhino-fails-to-install-python-runtime/191900)

<div class="topic-metadata">

**Author:** [@Luke14](https://discourse.mcneel.com/u/Luke14)\
**Replies:** 11\
**Last updated:** [September 14, 2026, 9:15pm UTC](https://discourse.mcneel.com/t/rhino-fails-to-install-python-runtime/191900 "2026-09-14T21:15:42Z")

</div>

Hi folks, Currently experiencing an issue with Rhino where it is failing to install the Python runtime. This occurs when opening the ScriptEditor or when running Grasshopper and attempting to add a Python component to t…

---

## [Python Edit Suggestion](https://discourse.mcneel.com/t/python-edit-suggestion/221652)

<div class="topic-metadata">

**Author:** [@tom33](https://discourse.mcneel.com/u/tom33)\
**Replies:** 7\
**Last updated:** [September 13, 2026, 5:13pm UTC](https://discourse.mcneel.com/t/python-edit-suggestion/221652 "2026-09-13T17:13:12Z")

</div>

1 → : The activity code files can be placed on the side. Sometimes, for some projects, I need to review multiple files to make comparisons. ====== 1 ====== 2 → : The code collector seems not to have saved the …

---

## [Preselection with -\_SelLayer \_Pick](https://discourse.mcneel.com/t/preselection-with--sellayer--pick/12353)

<div class="topic-metadata">

**Author:** [@silvano](https://discourse.mcneel.com/u/silvano)\
**Replies:** 8\
**Last updated:** [September 10, 2026, 10:44pm UTC](https://discourse.mcneel.com/t/preselection-with--sellayer--pick/12353 "2026-09-10T22:44:01Z")

</div>

Hi All, I have an object preselected. Then I do: -\_SelLayer \_Pick My previously selected object is still selected. I hit enter. The selection does not change. I still have the initially selected object selected, bu…

---

## [Handle keyboard in OnDynamicDraw without the command line receiving input](https://discourse.mcneel.com/t/handle-keyboard-in-ondynamicdraw-without-the-command-line-receiving-input/222406)

<div class="topic-metadata">

**Author:** [@Ex\_John](https://discourse.mcneel.com/u/Ex_John)\
**Replies:** 2\
**Last updated:** [September 10, 2026, 7:20am UTC](https://discourse.mcneel.com/t/handle-keyboard-in-ondynamicdraw-without-the-command-line-receiving-input/222406 "2026-09-10T07:20:14Z")

</div>

I’m trying to make a script/plugin for dynamically sectioning a mesh. I do this by overriding the GetPoint class and using its OnDynamicDraw. Then, I intersect the mesh with MeshPlane, to which I pass the plane, the or…

---

## [Rhino8\_PDF](https://discourse.mcneel.com/t/rhino8-pdf/222515)

<div class="topic-metadata">

**Author:** [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Replies:** 7\
**Last updated:** [September 9, 2026, 12:48pm UTC](https://discourse.mcneel.com/t/rhino8-pdf/222515 "2026-09-09T12:48:45Z")

</div>

New Text Document.txt (559 Bytes) Portrait\_Color.pdf (193.3 KB) I am trying to create a PDF with Python. I have attached the script and the resulting PDF. I am not able to get it to output in color or at 8.5" × 11" siz…

---

## [Is there a way to do sweep1 align with surface in Grasshopper or RhinoCommon?](https://discourse.mcneel.com/t/is-there-a-way-to-do-sweep1-align-with-surface-in-grasshopper-or-rhinocommon/94172)

<div class="topic-metadata">

**Author:** [@jmcauley](https://discourse.mcneel.com/u/jmcauley)\
**Replies:** 3\
**Last updated:** [September 9, 2026, 12:22am UTC](https://discourse.mcneel.com/t/is-there-a-way-to-do-sweep1-align-with-surface-in-grasshopper-or-rhinocommon/94172 "2026-09-09T00:22:47Z")

</div>

None of the Brep.CreateFromSweep statics look like they can do it. I expect to see a surface somewhere in the parameter list, and maybe an align flag and an edge index. When I look at the available methods I see nothing …

---

## [Hyphenated command doesn't prompt options (\_-SaveSmall)](https://discourse.mcneel.com/t/hyphenated-command-doesnt-prompt-options-savesmall/135949)

<div class="topic-metadata">

**Author:** [@ju\_anoriant](https://discourse.mcneel.com/u/ju_anoriant)\
**Replies:** 8\
**Last updated:** [September 8, 2026, 10:43pm UTC](https://discourse.mcneel.com/t/hyphenated-command-doesnt-prompt-options-savesmall/135949 "2026-09-08T22:43:39Z")

</div>

Hello, I’m having a problem with the “\_-SaveSmall” command. As I understand, it should prompt options, notably “Version”. In my case, it does not. The goal here is to specify a Rhino file version to the “\_-SaveSmall” …

---

## [Lags with mouse tracking on RhinoBeta](https://discourse.mcneel.com/t/lags-with-mouse-tracking-on-rhinobeta/222329)

<div class="topic-metadata">

**Author:** [@François\_Farnault](https://discourse.mcneel.com/u/Fran%C3%A7ois_Farnault)\
**Replies:** 5\
**Last updated:** [September 7, 2026, 6:22pm UTC](https://discourse.mcneel.com/t/lags-with-mouse-tracking-on-rhinobeta/222329 "2026-09-07T18:22:09Z")

</div>

Hello, I am developing a « Move Normal to Surface » definition including a Grasshopper Python script. It is integrated in a larger definition aimed at facilitating jewelry design. Thanks to this post and this other po…

---

## [VSCode for Rhino8 - Script-Sync, RhinoCode, etc?](https://discourse.mcneel.com/t/vscode-for-rhino8-script-sync-rhinocode-etc/215865)

<div class="topic-metadata">

**Author:** [@Alan\_Farkas](https://discourse.mcneel.com/u/Alan_Farkas)\
**Replies:** 2\
**Last updated:** [September 3, 2026, 5:53am UTC](https://discourse.mcneel.com/t/vscode-for-rhino8-script-sync-rhinocode-etc/215865 "2026-09-03T05:53:01Z")

</div>

Hey all, Getting back to using VSCode, and I’m looking to use mostly rhinoscriptsyntax (CPython) but need to also use RhinoCommon, RhinoScript, and possibly older IronPython in order to update. I’ve gotten lost in the …

[Next page](https://discourse.mcneel.com/c/scripting/11.md?page=1)
