# TriRemesh ScriptEditor Python Example

**URL:** <https://discourse.mcneel.com/t/triremesh-scripteditor-python-example/199133>\
**Category:** Scripting\
**Tags:** windows, mac\
**Created:** [February 6, 2025, 5:34pm UTC](https://discourse.mcneel.com/t/triremesh-scripteditor-python-example/199133 "2025-02-06T17:34:55Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![eirannejad](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eirannejad/32/775509_2.png) [@eirannejad](https://discourse.mcneel.com/u/eirannejad)\
**Post date:** [February 13, 2025, 1:37am UTC](https://discourse.mcneel.com/t/triremesh-scripteditor-python-example/199133/23 "2025-02-13T01:37:28Z")

</div>

Putting a fix for this for 8.18 to support the 4 ways of accessing node in code components. The `NodeInCodeFunctions.TriRemesh` is now a special case just for Kangaroo2 to fix the regression.

```python
from Rhino.NodeInCode import Components
Components.NodeInCodeFunctions.Kangaroo2Component_TriRemesh (mesh, None, None, None, 1, 25)
Components.NodeInCodeFunctions.TriRemesh(mesh, None, None, None, 1, 25)

import ghpythonlib.components as ghcomp
ghcomp.Kangaroo2Component.TriRemesh(mesh, None, None, None, 1, 25)
ghcomp.TriRemesh(mesh, None, None, None, 1, 25)

```

IromPython

 ![Rhino_idtnaVFx1w](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/6/0/f605cc72732934f5d74ccd805a04e69df30b7fa5.png)

Python 3 (Cases using `NodeInCodeFunctions` directly are awaiting fix for [RH-85966](https://mcneel.myjetbrains.com/youtrack/issue/RH-85966))

 ![Rhino_7wSf2wxSXg](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/7/a/c7a288de2f4daff537d6ce319b557bedae41dfef.png)

---

<div class="post-metadata">

**Author:** ![Petras\_Vestartas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/petras_vestartas/32/480531_2.png) [@Petras\_Vestartas](https://discourse.mcneel.com/u/Petras_Vestartas)\
**Post date:** [February 13, 2025, 4:50am UTC](https://discourse.mcneel.com/t/triremesh-scripteditor-python-example/199133/24 "2025-02-13T04:50:04Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![brian](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brian/32/504171_2.png) [@brian](https://discourse.mcneel.com/u/brian)\
**Post date:** [March 12, 2025, 2:02am UTC](https://discourse.mcneel.com/t/triremesh-scripteditor-python-example/199133/25 "2025-03-12T02:02:06Z")

</div>

[RH-85999](https://mcneel.myjetbrains.com/youtrack/issue/RH-85999) is fixed in [Rhino 8 Service Release 18](https://www.rhino3d.com/download/rhino/8/latest)

---

<div class="post-metadata">

**Author:** ![Petras\_Vestartas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/petras_vestartas/32/480531_2.png) [@Petras\_Vestartas](https://discourse.mcneel.com/u/Petras_Vestartas)\
**Post date:** [March 12, 2025, 6:41am UTC](https://discourse.mcneel.com/t/triremesh-scripteditor-python-example/199133/26 "2025-03-12T06:41:41Z")

</div>

Hooray!

---

<div class="post-metadata">

**Author:** ![brian](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brian/32/504171_2.png) [@brian](https://discourse.mcneel.com/u/brian)\
**Post date:** [November 11, 2026, 1:12am UTC](https://discourse.mcneel.com/t/triremesh-scripteditor-python-example/199133/27 "2026-11-11T01:12:55Z")

</div>

[RH-85966](https://mcneel.myjetbrains.com/youtrack/issue/RH-85966) is fixed in [Rhino 9 Service Release 2 Release Candidate](https://discourse.mcneel.com/t/rhino-service-release-candidates/53358)

[Previous page](https://discourse.mcneel.com/t/triremesh-scripteditor-python-example/199133.md?page=1)
