# \#ghpython

**URL:** https://discourse.mcneel.com/tag/ghpython/97.md

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

---

## [Regression: DrawViewportMeshes/Wires Requires Bounding Box Method](https://discourse.mcneel.com/t/regression-drawviewportmeshes-wires-requires-bounding-box-method/202513)

<div class="topic-metadata">

**Author:** [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Replies:** 8\
**Last updated:** [October 21, 2026, 1:45pm UTC](https://discourse.mcneel.com/t/regression-drawviewportmeshes-wires-requires-bounding-box-method/202513 "2026-10-21T13:45:28Z")

</div>

Hello McNeelies, As part of testing our BIG pipelines in Rhino 8 I’ve noticed a minor, but quite annoying, regression related to drawing stuff by implementing the DrawViewportMeshes and DrawViewportWires methods in GhPy…

---

## [Grasshopper help, architecture project thesis](https://discourse.mcneel.com/t/grasshopper-help-architecture-project-thesis/102623)

<div class="topic-metadata">

**Author:** [@clarrainl](https://discourse.mcneel.com/u/clarrainl)\
**Replies:** 22\
**Last updated:** [October 20, 2026, 5:48pm UTC](https://discourse.mcneel.com/t/grasshopper-help-architecture-project-thesis/102623 "2026-10-20T17:48:40Z")

</div>

Hello everyone! how are they? I need help, I have been trying for a long time but I do not know how it is done, I have these geometries which later I want to order vertically, skyscraper style, and that its facade will v…

---

## [Remote Control Panel Using Eto/GhPython](https://discourse.mcneel.com/t/remote-control-panel-using-eto-ghpython/223140)

<div class="topic-metadata">

**Author:** [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Replies:** 11\
**Last updated:** [October 12, 2026, 1:08pm UTC](https://discourse.mcneel.com/t/remote-control-panel-using-eto-ghpython/223140 "2026-10-12T13:08:16Z")

</div>

Hi all (or at least @ShynnSup), After years of being restricted by lack of features in the native Remote Control Panel (RCP), and given the likely long wait till a new one shows up in Grasshopper 2, I’ve been dabbling w…

---

## [Rhino 8 Python 3: ghpythonlib breaks treehelpers compatibility](https://discourse.mcneel.com/t/rhino-8-python-3-ghpythonlib-breaks-treehelpers-compatibility/222651)

<div class="topic-metadata">

**Author:** [@gch](https://discourse.mcneel.com/u/gch)\
**Replies:** 3\
**Last updated:** [September 22, 2026, 9:24pm UTC](https://discourse.mcneel.com/t/rhino-8-python-3-ghpythonlib-breaks-treehelpers-compatibility/222651 "2026-09-22T21:24:04Z")

</div>

Dear Ehsan Iran-Nejad (Lead Developer of the Rhino 8 Script Editor) @ehsan, and Giulio Piacentino (Creator of ghpythonlib and treehelpers) @piac, Subjetc: Regression in Rhino 8 (Python 3): ghpythonlib type handling brea…

---

## [Create pipe in Revit from two points problem](https://discourse.mcneel.com/t/create-pipe-in-revit-from-two-points-problem/142370)

<div class="topic-metadata">

**Author:** [@Joachim\_S](https://discourse.mcneel.com/u/Joachim_S)\
**Replies:** 6\
**Last updated:** [September 18, 2026, 9:07am UTC](https://discourse.mcneel.com/t/create-pipe-in-revit-from-two-points-problem/142370 "2026-09-18T09:07:25Z")

</div>

Hi guys. I learned the basic stuff about: Grasshopper, Revit, Rhino.Inside.Revit, Rhino, General Python, GHPython and IronPython and completed some courses from McNeel education. I am working in Revit 2023 and Rhino 8 (…

---

## [R8 GH Script component - safety enhancement request](https://discourse.mcneel.com/t/r8-gh-script-component-safety-enhancement-request/179067)

<div class="topic-metadata">

**Author:** [@jeremy5](https://discourse.mcneel.com/u/jeremy5)\
**Replies:** 8\
**Last updated:** [August 26, 2026, 2:01am UTC](https://discourse.mcneel.com/t/r8-gh-script-component-safety-enhancement-request/179067 "2026-08-26T02:01:22Z")

</div>

I downloaded a .gh file from the forum to look into a user’s problem. On opening the file, a Python Script component downloaded a heck of a lot of modules, I presume because of the # requirements, # r: and # venv stateme…

---

## [Dynamic inputs with external python script - PASSTHROUGH HELP!](https://discourse.mcneel.com/t/dynamic-inputs-with-external-python-script-passthrough-help/187942)

<div class="topic-metadata">

**Author:** [@Vishal\_Vaidhyanathan](https://discourse.mcneel.com/u/Vishal_Vaidhyanathan)\
**Replies:** 1\
**Last updated:** [August 24, 2026, 4:18pm UTC](https://discourse.mcneel.com/t/dynamic-inputs-with-external-python-script-passthrough-help/187942 "2026-08-24T16:18:09Z")

</div>

Hi all, I am in need of an urgent help. I am trying to create a pass-through script component with dynamic inputs and outputs from an external python script by using RhinoCodePluginGH.Parameters. I am successful in creat…

---

## [R9 - WIP (9.0.26160.12305, 2026-06-09) - Python Problem](https://discourse.mcneel.com/t/r9-wip-9-0-26160-12305-2026-06-09-python-problem/220069)

<div class="topic-metadata">

**Author:** [@Erdem](https://discourse.mcneel.com/u/Erdem)\
**Replies:** 3\
**Last updated:** [June 23, 2026, 8:39am UTC](https://discourse.mcneel.com/t/r9-wip-9-0-26160-12305-2026-06-09-python-problem/220069 "2026-06-23T08:39:47Z")

</div>

I have this latest Rhino WIP installed and in Rhino I cannot open the python editor with EditPythonScript command (ScriptEditor seems to be working). In Grasshopper when I import and open a GHPython component when I typ…

---

## [Using ModelBlockDefintion within Python Script?](https://discourse.mcneel.com/t/using-modelblockdefintion-within-python-script/212013)

<div class="topic-metadata">

**Author:** [@ed.p.may](https://discourse.mcneel.com/u/ed.p.may)\
**Replies:** 4\
**Last updated:** [June 11, 2026, 12:14am UTC](https://discourse.mcneel.com/t/using-modelblockdefintion-within-python-script/212013 "2026-06-11T00:14:24Z")

</div>

I wonder if anyone can provide a hint or point me towards the documentation for the ghpythonlib.components.ModelBlockDefinition object? I’m not able to use it properly for some reason, and unsure why? I can figure out ho…

---

## [Python error on grasshopper](https://discourse.mcneel.com/t/python-error-on-grasshopper/218796)

<div class="topic-metadata">

**Author:** [@nachetz](https://discourse.mcneel.com/u/nachetz)\
**Replies:** 13\
**Last updated:** [May 28, 2026, 6:04pm UTC](https://discourse.mcneel.com/t/python-error-on-grasshopper/218796 "2026-05-28T18:04:42Z")

</div>

Anyone else has got this problem?? i’ve lost all of my scripts… And, whats does the second image mean??

---

## [How can aggregation engine pickup different rules in a field driven?](https://discourse.mcneel.com/t/how-can-aggregation-engine-pickup-different-rules-in-a-field-driven/219121)

<div class="topic-metadata">

**Author:** [@naitik264](https://discourse.mcneel.com/u/naitik264)\
**Replies:** 3\
**Last updated:** [May 20, 2026, 7:38am UTC](https://discourse.mcneel.com/t/how-can-aggregation-engine-pickup-different-rules-in-a-field-driven/219121 "2026-05-20T07:38:28Z")

</div>

Hello everyone, I am currently working with Assembler plugin and I am stuck and want help. Idea is to create an assembly of H-shaped block that pickup planar rules in the planar region (wall & floor area) and it should…

---

## [Rhino Grasshopper Python Error](https://discourse.mcneel.com/t/rhino-grasshopper-python-error/217149)

<div class="topic-metadata">

**Author:** [@jia.yeap](https://discourse.mcneel.com/u/jia.yeap)\
**Replies:** 1\
**Last updated:** [March 19, 2026, 12:27am UTC](https://discourse.mcneel.com/t/rhino-grasshopper-python-error/217149 "2026-03-19T00:27:27Z")

</div>

Hi All, I am running Rhino Version 8 SR28 (8.28.26041.11001, 2026-02-10). running python .9.10 Just wondering have anyone encounter a python code that shows error no matter how i disable/enable or recompute the grassho…

---

## [Offset Ribbon Surface](https://discourse.mcneel.com/t/offset-ribbon-surface/213614)

<div class="topic-metadata">

**Author:** [@Enrique\_Diaz](https://discourse.mcneel.com/u/Enrique_Diaz)\
**Replies:** 0\
**Last updated:** [December 13, 2025, 5:21pm UTC](https://discourse.mcneel.com/t/offset-ribbon-surface/213614 "2025-12-13T17:21:37Z")

</div>

Hello forum, I need a hand to understand how to fox this script to cosntruct a Ribbon from RibbonMethod from the API. Somebody can helpme to undersant whats the problem? Good Weekend :slight\_smile: Im using Rhino 8. P…

---

## [Get the object layer in grasshopper](https://discourse.mcneel.com/t/get-the-object-layer-in-grasshopper/213081)

<div class="topic-metadata">

**Author:** [@revink](https://discourse.mcneel.com/u/revink)\
**Replies:** 9\
**Last updated:** [December 3, 2025, 9:14am UTC](https://discourse.mcneel.com/t/get-the-object-layer-in-grasshopper/213081 "2025-12-03T09:14:19Z")

</div>

Hi, I am trying to do something I thought pretty simple but I am struggling in grasshopper: getting the object layer of one or multiple objects. here is my file and the error message, what am I getting wrong? This works…

---

## [Using ghpythonlib.components.RenderAttributes?](https://discourse.mcneel.com/t/using-ghpythonlib-components-renderattributes/212052)

<div class="topic-metadata">

**Author:** [@ed.p.may](https://discourse.mcneel.com/u/ed.p.may)\
**Replies:** 0\
**Last updated:** [November 6, 2025, 6:02pm UTC](https://discourse.mcneel.com/t/using-ghpythonlib-components-renderattributes/212052 "2025-11-06T18:02:58Z")

</div>

Does anyone have an example or hint on using ghpythonlib.components.RenderAttributes (or RenderMaterial, ModelMaterial)? It is available, and it has a help: Help on function RenderAttributes in module ghpythonlib.com…

---

## [Ghpython Data Problem](https://discourse.mcneel.com/t/ghpython-data-problem/199287)

<div class="topic-metadata">

**Author:** [@Enrique\_Diaz](https://discourse.mcneel.com/u/Enrique_Diaz)\
**Replies:** 1\
**Last updated:** [October 26, 2025, 10:24am UTC](https://discourse.mcneel.com/t/ghpython-data-problem/199287 "2025-10-26T10:24:59Z")

</div>

Hello Forum, I am currently facing an issue with a GhPython script I am developing, specifically with maintaining my data structure when trying to divide curves to obtain their points. The script either returns a flat li…

---

## [Help! How to resolve ‘Brep’ object is not iterable’ Error?](https://discourse.mcneel.com/t/help-how-to-resolve-brep-object-is-not-iterable-error/209285)

<div class="topic-metadata">

**Author:** [@CYMK\_0000](https://discourse.mcneel.com/u/CYMK_0000)\
**Replies:** 4\
**Last updated:** [September 4, 2025, 2:42pm UTC](https://discourse.mcneel.com/t/help-how-to-resolve-brep-object-is-not-iterable-error/209285 "2025-09-04T14:42:01Z")

</div>

Hi. I am trying to get Grasshopper to simulate ocean wave movement and how it responds to wave barriers. However, when creating the script for the wave barrier, I encountered the error ‘Error running script: ‘Brep’ objec…

---

## [Computational design books that can be used as "workbooks"?](https://discourse.mcneel.com/t/computational-design-books-that-can-be-used-as-workbooks/196810)

<div class="topic-metadata">

**Author:** [@andreaw](https://discourse.mcneel.com/u/andreaw)\
**Replies:** 6\
**Last updated:** [August 24, 2025, 11:17am UTC](https://discourse.mcneel.com/t/computational-design-books-that-can-be-used-as-workbooks/196810 "2025-08-24T11:17:19Z")

</div>

I’ve seen people use the Pasta By Design book as a sort of “workbook” for Grasshopper, where they try and implement all the different pasta shapes. What other books might work well as an “exercise book” to practice Gras…

---

## [Programmatically connect and set value for ImageUriResource in GH Python?](https://discourse.mcneel.com/t/programmatically-connect-and-set-value-for-imageuriresource-in-gh-python/208252)

<div class="topic-metadata">

**Author:** [@EDGARZR54](https://discourse.mcneel.com/u/EDGARZR54)\
**Replies:** 2\
**Last updated:** [August 10, 2025, 4:07pm UTC](https://discourse.mcneel.com/t/programmatically-connect-and-set-value-for-imageuriresource-in-gh-python/208252 "2025-08-10T16:07:15Z")

</div>

Hello everyone, I am working on a GH Python script where I am trying to dynamically create and add an ImageUriResource component to the Grasshopper canvas using the following code: import clr clr.AddReference("IOCompon…

---

## [Update GH panel through python](https://discourse.mcneel.com/t/update-gh-panel-through-python/208175)

<div class="topic-metadata">

**Author:** [@NECH](https://discourse.mcneel.com/u/NECH)\
**Replies:** 1\
**Last updated:** [August 8, 2025, 7:11pm UTC](https://discourse.mcneel.com/t/update-gh-panel-through-python/208175 "2025-08-08T19:11:13Z")

</div>

Hi, I have a database in a GH panel. I want to be able to update the database through an ETO form dialogue, where the updated database needs to replace the old database with, on the exact same GH panel. I dont want to…

---

## [Grasshopper geometry not showing in Rhino](https://discourse.mcneel.com/t/grasshopper-geometry-not-showing-in-rhino/206389)

<div class="topic-metadata">

**Author:** [@Dimitrije\_Matejić](https://discourse.mcneel.com/u/Dimitrije_Mateji%C4%87)\
**Replies:** 4\
**Last updated:** [July 23, 2025, 9:48pm UTC](https://discourse.mcneel.com/t/grasshopper-geometry-not-showing-in-rhino/206389 "2025-07-23T21:48:41Z")

</div>

Im trying to model a bridge on rhino via GHpython, no dimensioning involved (ex. no materialdata, no structure mechanics) just a drawn out model of a suspension bridge. the issue is that whatever I do in GH no matter how…

---

## [How to update sticky inside Cluster](https://discourse.mcneel.com/t/how-to-update-sticky-inside-cluster/139990)

<div class="topic-metadata">

**Author:** [@Toni\_Osterlund](https://discourse.mcneel.com/u/Toni_Osterlund)\
**Replies:** 21\
**Last updated:** [July 23, 2025, 7:50am UTC](https://discourse.mcneel.com/t/how-to-update-sticky-inside-cluster/139990 "2025-07-23T07:50:00Z")

</div>

I’m testing if I could utilise sticky as a “global variable” in a script, where the same value is needed in several locations and inside clusters. Trying to make it updatable. I can get the “receiver” to update, but onc…

---

## [Squish in GH Python uses wrong surface despite correct input after split](https://discourse.mcneel.com/t/squish-in-gh-python-uses-wrong-surface-despite-correct-input-after-split/207248)

<div class="topic-metadata">

**Author:** [@poojan\_venkatesh](https://discourse.mcneel.com/u/poojan_venkatesh)\
**Replies:** 5\
**Last updated:** [July 18, 2025, 11:07am UTC](https://discourse.mcneel.com/t/squish-in-gh-python-uses-wrong-surface-despite-correct-input-after-split/207248 "2025-07-18T11:07:44Z")

</div>

squish using python.gh (32.5 KB) Hi all, I’m working on an automated flattening process using \_Squish inside a Grasshopper Python component in Rhino 7. Here’s what I’m trying to do: Split a surface in Grasshopp…

---

## [How to automatically simulate a series of specific variants?](https://discourse.mcneel.com/t/how-to-automatically-simulate-a-series-of-specific-variants/201612)

<div class="topic-metadata">

**Author:** [@Maria\_Hartmann](https://discourse.mcneel.com/u/Maria_Hartmann)\
**Replies:** 6\
**Last updated:** [July 16, 2025, 3:44pm UTC](https://discourse.mcneel.com/t/how-to-automatically-simulate-a-series-of-specific-variants/201612 "2025-07-16T15:44:30Z")

</div>

Hello everyone, I would like to simulate several variants of a model automatically. I have created a Honeybee model and can change various settings with sliders, e.g. orientation of the building to the north (north or…

---

## [Controlled Brep Unrolling for Production](https://discourse.mcneel.com/t/controlled-brep-unrolling-for-production/207095)

<div class="topic-metadata">

**Author:** [@Til\_Frank](https://discourse.mcneel.com/u/Til_Frank)\
**Replies:** 4\
**Last updated:** [July 15, 2025, 3:52am UTC](https://discourse.mcneel.com/t/controlled-brep-unrolling-for-production/207095 "2025-07-15T03:52:08Z")

</div>

Hi, I’m currently working on a custom unroll script in Python for Grasshopper, intended for production data generation, specifically to create milling files for panels. The usual unroll components like UnrollSrf or plu…

---

## [Proper way to convert ghpy method compiling to Rhino 8 method](https://discourse.mcneel.com/t/proper-way-to-convert-ghpy-method-compiling-to-rhino-8-method/205258)

<div class="topic-metadata">

**Author:** [@User\_aaa](https://discourse.mcneel.com/u/User_aaa)\
**Replies:** 5\
**Last updated:** [July 9, 2025, 4:10pm UTC](https://discourse.mcneel.com/t/proper-way-to-convert-ghpy-method-compiling-to-rhino-8-method/205258 "2025-07-09T16:10:26Z")

</div>

Hi I have series components created using Rhino 7 and the method below compiling the python codes to ghpy. Seems like now Rhino 8 have Rhino Script Editor and all-Rhino Python compiler what is the proper process of conve…

---

## [GhPythonlib 'Angle' component changed to the 'Kangaroo' version?](https://discourse.mcneel.com/t/ghpythonlib-angle-component-changed-to-the-kangaroo-version/205544)

<div class="topic-metadata">

**Author:** [@ed.p.may](https://discourse.mcneel.com/u/ed.p.may)\
**Replies:** 3\
**Last updated:** [June 11, 2025, 2:25am UTC](https://discourse.mcneel.com/t/ghpythonlib-angle-component-changed-to-the-kangaroo-version/205544 "2025-06-11T02:25:32Z")

</div>

Good morning, I had occasion to open an older file from January today, and all of my GhPython components are now raising errors. I think I have tracked the error to a change that has occurred in the ghpythonlib.componen…

---

## [GHPython Universal flatten Tree (structure)](https://discourse.mcneel.com/t/ghpython-universal-flatten-tree-structure/206227)

<div class="topic-metadata">

**Author:** [@gch](https://discourse.mcneel.com/u/gch)\
**Replies:** 0\
**Last updated:** [June 21, 2025, 9:26pm UTC](https://discourse.mcneel.com/t/ghpython-universal-flatten-tree-structure/206227 "2025-06-21T21:26:43Z")

</div>

Coding in GHPython it would be usefull to have an unniversal flatten to handle mixed data types, and sort it all out from python to grasshopper. def flatten\_all(obj): from ghpythonlib.treehelpers import flatten from G…

---

## [Load cluster in Python code](https://discourse.mcneel.com/t/load-cluster-in-python-code/205908)

<div class="topic-metadata">

**Author:** [@user883](https://discourse.mcneel.com/u/user883)\
**Replies:** 0\
**Last updated:** [June 15, 2025, 6:36am UTC](https://discourse.mcneel.com/t/load-cluster-in-python-code/205908 "2025-06-15T06:36:07Z")

</div>

I wan to run list of cluster via python , where it take an input from one cluster and pass it to the other one . i made a code in ghpython where it work for first cluster only but failed to process the full list : here i…

---

## [IronPython 2 vs Python 3 Print Terminal](https://discourse.mcneel.com/t/ironpython-2-vs-python-3-print-terminal/205508)

<div class="topic-metadata">

**Author:** [@Schuyler\_McAuliffe](https://discourse.mcneel.com/u/Schuyler_McAuliffe)\
**Replies:** 2\
**Last updated:** [June 9, 2025, 4:21pm UTC](https://discourse.mcneel.com/t/ironpython-2-vs-python-3-print-terminal/205508 "2025-06-09T16:21:45Z")

</div>

Hello, I am curious if there is a way to get the Terminal view of a print function to show the same data between IronPython 2 and Python 3. I use the ghpythonlib.components library frequently, and I check my work th…

[Next page](https://discourse.mcneel.com/tag/ghpython/97.md?match_all_tags=true&page=1&tags%5B%5D=ghpython)
