# \#javascript

**URL:** https://discourse.mcneel.com/tag/javascript/1007.md

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

---

## [Extrusion functionality in 3dm makes it difficult to include holes](https://discourse.mcneel.com/t/extrusion-functionality-in-3dm-makes-it-difficult-to-include-holes/190485)

<div class="topic-metadata">

**Author:** [@erikforsberg95](https://discourse.mcneel.com/u/erikforsberg95)\
**Replies:** 17\
**Last updated:** [December 11, 2025, 1:09am UTC](https://discourse.mcneel.com/t/extrusion-functionality-in-3dm-makes-it-difficult-to-include-holes/190485 "2025-12-11T01:09:11Z")

</div>

Hello, I’ve noticed what I think is a strange behaviour in rhino3dm.js. I’ve already found a working solution, but I feel like it’s a bit unintuitive and not very elegant, so I’m posting here to let you know and/or to s…

---

## [Three.js 3DM Loader fails to load BREPs](https://discourse.mcneel.com/t/three-js-3dm-loader-fails-to-load-breps/158877)

<div class="topic-metadata">

**Author:** [@Niklas\_Haschke](https://discourse.mcneel.com/u/Niklas_Haschke)\
**Replies:** 18\
**Last updated:** [October 15, 2024, 5:54pm UTC](https://discourse.mcneel.com/t/three-js-3dm-loader-fails-to-load-breps/158877 "2024-10-15T17:54:20Z")

</div>

Hi there, I use the rhino3dm.js library to export geometry to Rhino as NurbsCurves, BREPs, extrusions, … When I want to re-import the File again with the Three.js 3DM Loader I get this error: Does someone know what…

---

## [Connecting Rhino with a node.js webapp](https://discourse.mcneel.com/t/connecting-rhino-with-a-node-js-webapp/192275)

<div class="topic-metadata">

**Author:** [@Bruno\_Teruel](https://discourse.mcneel.com/u/Bruno_Teruel)\
**Replies:** 0\
**Last updated:** [October 2, 2024, 7:01pm UTC](https://discourse.mcneel.com/t/connecting-rhino-with-a-node-js-webapp/192275 "2024-10-02T19:01:15Z")

</div>

Hello, I am new to rhino so not sure if this is possible. I have a webapp developed in javascript with node.js. It uses three.js to manipulate and display 3D geometry. I would like to know if there is anyway I can conne…

---

## [Exporting Drawings to JavaScript paper.js or pixi.js](https://discourse.mcneel.com/t/exporting-drawings-to-javascript-paper-js-or-pixi-js/184561)

<div class="topic-metadata">

**Author:** [@Benjamin\_Paolo\_Fortu](https://discourse.mcneel.com/u/Benjamin_Paolo_Fortu)\
**Replies:** 0\
**Last updated:** [June 14, 2024, 4:55pm UTC](https://discourse.mcneel.com/t/exporting-drawings-to-javascript-paper-js-or-pixi-js/184561 "2024-06-14T16:55:47Z")

</div>

I was looking for a way to export drawings into a JavaScript framework like paper.js or pixi.js. Not sure if SVG would be the best format or if we should use some of the native features in paper.js. I saw that their were…

---

## [Help Needed with Creating a NURBS Surface Using rhino3dm.js](https://discourse.mcneel.com/t/help-needed-with-creating-a-nurbs-surface-using-rhino3dm-js/175776)

<div class="topic-metadata">

**Author:** [@Nicolas\_LABLAINE](https://discourse.mcneel.com/u/Nicolas_LABLAINE)\
**Replies:** 4\
**Last updated:** [March 19, 2024, 10:46am UTC](https://discourse.mcneel.com/t/help-needed-with-creating-a-nurbs-surface-using-rhino3dm-js/175776 "2024-03-19T10:46:51Z")

</div>

Hello everyone, I’m currently facing a challenge while trying to create a NURBS surface using rhino3dm.js based on control points, but unfortunately, I haven’t been successful so far. I’ve attempted to adapt examples fr…

---

## [Online Rhino Viewer](https://discourse.mcneel.com/t/online-rhino-viewer/104451)

<div class="topic-metadata">

**Author:** [@mkarimi](https://discourse.mcneel.com/u/mkarimi)\
**Replies:** 66\
**Last updated:** [February 8, 2024, 7:45pm UTC](https://discourse.mcneel.com/t/online-rhino-viewer/104451 "2024-02-08T19:45:20Z")

</div>

Hi all, I made viewport.xyz using rhino3dm.js. It’s a free tool to preview and share 3D models right from your computer or phone browser. Here’s a video of how it works: https://www.youtube.com/watch?v=ulUQvoAerI0 G…

---

## [Rhino3dm 8.0.1 released 🎉](https://discourse.mcneel.com/t/rhino3dm-8-0-1-released/169450)

<div class="topic-metadata">

**Author:** [@fraguada](https://discourse.mcneel.com/u/fraguada)\
**Replies:** 0\
**Last updated:** [November 17, 2023, 1:22pm UTC](https://discourse.mcneel.com/t/rhino3dm-8-0-1-released/169450 "2023-11-17T13:22:05Z")

</div>

This release coincides with the openNURBS source in Rhino 8.0. :green\_square: python PyPI - rhino3dm-8.0.1 :purple\_square: dotnet NuGet - Rhino3dm 8.0.1 :yellow\_square: javascript npm - rhino3dm8.0.1 :scroll: chan…

---

## [Eto Webview, Javascript & Leaflet.js](https://discourse.mcneel.com/t/eto-webview-javascript-leaflet-js/163406)

<div class="topic-metadata">

**Author:** [@Dan\_Cornick](https://discourse.mcneel.com/u/Dan_Cornick)\
**Replies:** 3\
**Last updated:** [July 30, 2023, 2:58pm UTC](https://discourse.mcneel.com/t/eto-webview-javascript-leaflet-js/163406 "2023-07-30T14:58:50Z")

</div>

Hi all, I’ve created a Eto.forms webview which I’d like to run a small piece of JavaScript - returning the coordinates of a selected location via Open Street Maps. The JS file runs using Leaflet.js, and works perfectly…

---

## [Cloning via multisession](https://discourse.mcneel.com/t/cloning-via-multisession/161420)

<div class="topic-metadata">

**Author:** [@Gilberto\_Rodriguez](https://discourse.mcneel.com/u/Gilberto_Rodriguez)\
**Replies:** 7\
**Last updated:** [July 9, 2023, 9:17pm UTC](https://discourse.mcneel.com/t/cloning-via-multisession/161420 "2023-07-09T21:17:12Z")

</div>

Hi there, I am a web developer. I need to be able to create an indefinite number of clones of a complete model that allows me to modify properties of the clone and that all cloned models behave as if they were a single m…

---

## [Error with environment map url](https://discourse.mcneel.com/t/error-with-environment-map-url/161940)

<div class="topic-metadata">

**Author:** [@Gilberto\_Rodriguez](https://discourse.mcneel.com/u/Gilberto_Rodriguez)\
**Replies:** 0\
**Last updated:** [June 24, 2023, 3:28am UTC](https://discourse.mcneel.com/t/error-with-environment-map-url/161940 "2023-06-24T03:28:42Z")

</div>

Hello. I have a problem with shapediver. I am unable to place environment maps that are hosted on Go Daddy, I am getting the following error. It works perfectly with the original source: https://dl.polyhaven.org/file…

---

## [Rhino Compute javascript library](https://discourse.mcneel.com/t/rhino-compute-javascript-library/160833)

<div class="topic-metadata">

**Author:** [@Corrado](https://discourse.mcneel.com/u/Corrado)\
**Replies:** 1\
**Last updated:** [June 7, 2023, 11:11am UTC](https://discourse.mcneel.com/t/rhino-compute-javascript-library/160833 "2023-06-07T11:11:00Z")

</div>

Hi, i started experimenting with Rhino.compute The installation of the server was succesful; same for the first tests trought the “Hops” component in Grasshopper. Now i’m trying to do some test with javascript and i s…

---

## [Zoom To Fit? (Embedded SD)](https://discourse.mcneel.com/t/zoom-to-fit-embedded-sd/104475)

<div class="topic-metadata">

**Author:** [@prgsmall](https://discourse.mcneel.com/u/prgsmall)\
**Replies:** 26\
**Last updated:** [June 7, 2023, 11:06am UTC](https://discourse.mcneel.com/t/zoom-to-fit-embedded-sd/104475 "2023-06-07T11:06:26Z")

</div>

I’m using the ShapeDiver Web UI to embed a model on a web page. I would like the model to show up as large as possible when it is loaded. Can someone show me how to zoom to fit the model within the current window? Tha…

---

## [Named context bake for custom Grasshopper plugin](https://discourse.mcneel.com/t/named-context-bake-for-custom-grasshopper-plugin/159734)

<div class="topic-metadata">

**Author:** [@felix.brunold](https://discourse.mcneel.com/u/felix.brunold)\
**Replies:** 0\
**Last updated:** [May 11, 2023, 2:36pm UTC](https://discourse.mcneel.com/t/named-context-bake-for-custom-grasshopper-plugin/159734 "2023-05-11T14:36:40Z")

</div>

Hello Together, I’m currently working on a rhino compute app, and I was wondering if it is possible to dynamically define the name of the (RH:OUT | Context Bake) inside C# or Grasshopper Plugin? This out of the reason …

---

## [Multiple Clone Versus multiple sessions](https://discourse.mcneel.com/t/multiple-clone-versus-multiple-sessions/152888)

<div class="topic-metadata">

**Author:** [@olivia3](https://discourse.mcneel.com/u/olivia3)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 2:23pm UTC](https://discourse.mcneel.com/t/multiple-clone-versus-multiple-sessions/152888 "2023-01-06T14:23:29Z")

</div>

For a project, i need to show several objets in the same viewer. These objects are placed next to each other. Some are identical, some are differents Exemple : ObjectLeft - ObjectFront - ObjectFront - ObjectFront - O…

---

## [API V3 - Help to Clone node](https://discourse.mcneel.com/t/api-v3-help-to-clone-node/152863)

<div class="topic-metadata">

**Author:** [@olivia3](https://discourse.mcneel.com/u/olivia3)\
**Replies:** 3\
**Last updated:** [January 5, 2023, 7:36am UTC](https://discourse.mcneel.com/t/api-v3-help-to-clone-node/152863 "2023-01-05T07:36:33Z")

</div>

Hello, For a new project, I need to clone several times the same object. Instead of adding several sessions in my viewer, I prefer to clone it for better repsonse time. I found this codepen : cloning and transforming -…

---

## [Console and terminal errors when running app](https://discourse.mcneel.com/t/console-and-terminal-errors-when-running-app/149303)

<div class="topic-metadata">

**Author:** [@Gustavs](https://discourse.mcneel.com/u/Gustavs)\
**Replies:** 1\
**Last updated:** [November 10, 2022, 3:23pm UTC](https://discourse.mcneel.com/t/console-and-terminal-errors-when-running-app/149303 "2022-11-10T15:23:29Z")

</div>

Hi, I’m using a create-react-app default build and have installed the viewer and interaction packages via npm install --save @shapediver/viewer @shapediver/viewer.features.interaction. When I run the project, the termi…

---

## [Can I get some help on this other thread?](https://discourse.mcneel.com/t/can-i-get-some-help-on-this-other-thread/150144)

<div class="topic-metadata">

**Author:** [@Daniel\_González\_Rein](https://discourse.mcneel.com/u/Daniel_Gonz%C3%A1lez_Rein)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 1:43pm UTC](https://discourse.mcneel.com/t/can-i-get-some-help-on-this-other-thread/150144 "2022-11-04T13:43:57Z")

</div>

I’m trying to get a solution to an issue, but it seems the thread has dead. I’m posting a new one linking to the original one hoping it gets some eyes. The post is Loading a 3dm model and sending it to grasshopper using…

---

## [How to get the coordinates from a point on mouseclick in the new viewer](https://discourse.mcneel.com/t/how-to-get-the-coordinates-from-a-point-on-mouseclick-in-the-new-viewer/145154)

<div class="topic-metadata">

**Author:** [@Robin\_van\_Wijk](https://discourse.mcneel.com/u/Robin_van_Wijk)\
**Replies:** 6\
**Last updated:** [September 8, 2022, 11:07am UTC](https://discourse.mcneel.com/t/how-to-get-the-coordinates-from-a-point-on-mouseclick-in-the-new-viewer/145154 "2022-09-08T11:07:15Z")

</div>

I want to get the coordinates from a point in the viewer (newest version) after clicking, but it seems it has been changed from the previous version of the viewer. SDV.addListener(SDV.EVENTTYPE.INTERACTION.SELECT\_ON, (e…

---

## [Rhino.Compute Javascript examples (using three.js)](https://discourse.mcneel.com/t/rhino-compute-javascript-examples-using-three-js/133877)

<div class="topic-metadata">

**Author:** [@mo7ammad11](https://discourse.mcneel.com/u/mo7ammad11)\
**Replies:** 27\
**Last updated:** [June 27, 2022, 9:59am UTC](https://discourse.mcneel.com/t/rhino-compute-javascript-examples-using-three-js/133877 "2022-06-27T09:59:46Z")

</div>

Hi, I’m trying to test the samples provided here: https://github.com/mcneel/rhino-developer-samples/blob/7/compute/js/SampleGHMaterial/script.js the results do not appear in my browser although I’m getting a 200 from t…

---

## [Compute.rhino3d.appserver partially empty output when using THREE.JS STL loader](https://discourse.mcneel.com/t/compute-rhino3d-appserver-partially-empty-output-when-using-three-js-stl-loader/112387)

<div class="topic-metadata">

**Author:** [@martinborst1](https://discourse.mcneel.com/u/martinborst1)\
**Replies:** 13\
**Last updated:** [May 5, 2022, 6:50pm UTC](https://discourse.mcneel.com/t/compute-rhino3d-appserver-partially-empty-output-when-using-three-js-stl-loader/112387 "2022-05-05T18:50:28Z")

</div>

Hello, I am currently trying to use VUE: upload STL → THREEJS Loader → rhino3dm → compute.rhino3d.appserver → compute.rhino3dm → THREEJS Loader My problem is, many rhino3dm meshes lead to empty outputs from the compute.…

---

## [Create three.js mesh from rhino with vertex colors](https://discourse.mcneel.com/t/create-three-js-mesh-from-rhino-with-vertex-colors/120239)

<div class="topic-metadata">

**Author:** [@erikforsberg95](https://discourse.mcneel.com/u/erikforsberg95)\
**Replies:** 14\
**Last updated:** [April 8, 2022, 10:11am UTC](https://discourse.mcneel.com/t/create-three-js-mesh-from-rhino-with-vertex-colors/120239 "2022-04-08T10:11:55Z")

</div>

Hello all! I’m trying to use rhino.compute and rhino3dm.js to create a three.js mesh from a rhino mesh. This works fine, but I haven’t figured out how to include the materials from the rhino mesh to the three mesh yet. …

---

## [Retrieve userstring from geometry](https://discourse.mcneel.com/t/retrieve-userstring-from-geometry/137687)

<div class="topic-metadata">

**Author:** [@dadandroid](https://discourse.mcneel.com/u/dadandroid)\
**Replies:** 9\
**Last updated:** [February 16, 2022, 12:07pm UTC](https://discourse.mcneel.com/t/retrieve-userstring-from-geometry/137687 "2022-02-16T12:07:06Z")

</div>

Hi @fraguada Perhaps you can help me with this one. I am trying to retrieve the userdata stored in a geometry of an object after loading a file with the 3dmloader. When I log the object to the console I can see the user…

---

## [Chrome console error on direct embedding app](https://discourse.mcneel.com/t/chrome-console-error-on-direct-embedding-app/133581)

<div class="topic-metadata">

**Author:** [@davidychang](https://discourse.mcneel.com/u/davidychang)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 5:58pm UTC](https://discourse.mcneel.com/t/chrome-console-error-on-direct-embedding-app/133581 "2021-11-18T17:58:33Z")

</div>

Only one user reported this error when running a direct embedding app in his Chrome. However, the app is running OK in the user’s Edge browser. I can’t reproduce the error. Do you have any insights about this issue ? …

---

## [Gig: Generative Design Animations](https://discourse.mcneel.com/t/gig-generative-design-animations/129920)

<div class="topic-metadata">

**Author:** [@chris.maltez](https://discourse.mcneel.com/u/chris.maltez)\
**Replies:** 3\
**Last updated:** [September 9, 2021, 5:17pm UTC](https://discourse.mcneel.com/t/gig-generative-design-animations/129920 "2021-09-09T17:17:48Z")

</div>

Looking for someone to help build 3-4 animations with computational models in massing, layout, sustainability, etc. Due date would be near End of September 2021 This would be on a paid hourly basis. Looking for people…

---

## [Input from JSON from a remote server or from client](https://discourse.mcneel.com/t/input-from-json-from-a-remote-server-or-from-client/129502)

<div class="topic-metadata">

**Author:** [@Balazs\_Kisfali](https://discourse.mcneel.com/u/Balazs_Kisfali)\
**Replies:** 6\
**Last updated:** [August 31, 2021, 1:03pm UTC](https://discourse.mcneel.com/t/input-from-json-from-a-remote-server-or-from-client/129502 "2021-08-31T13:03:34Z")

</div>

I am creating some geometry based on user inputs and I’m creating a JSON object from all information which the geometry generation needs. This works ok in a local env in GH but I am not sure how to implement it to Shaped…

---

## [Rollout of "Open3d" -- A Typescript/Javascript 3d geometry library](https://discourse.mcneel.com/t/rollout-of-open3d-a-typescript-javascript-3d-geometry-library/129099)

<div class="topic-metadata">

**Author:** [@jessen.ch](https://discourse.mcneel.com/u/jessen.ch)\
**Replies:** 0\
**Last updated:** [August 22, 2021, 4:44pm UTC](https://discourse.mcneel.com/t/rollout-of-open3d-a-typescript-javascript-3d-geometry-library/129099 "2021-08-22T16:44:52Z")

</div>

Hi everyone, I’m not sure if it is legitimate but I’d like to take the chance here to share a new typescript/javascript library Open3d, which is a basic 3d library that contains functionalities of vectors / matrices / l…

---

## [C.value undefined error on rhino3dm.js](https://discourse.mcneel.com/t/c-value-undefined-error-on-rhino3dm-js/122596)

<div class="topic-metadata">

**Author:** [@atelierkirchhof](https://discourse.mcneel.com/u/atelierkirchhof)\
**Replies:** 4\
**Last updated:** [April 30, 2021, 10:12am UTC](https://discourse.mcneel.com/t/c-value-undefined-error-on-rhino3dm-js/122596 "2021-04-30T10:12:10Z")

</div>

whats the difference between this two files? test\_ok.3dm (285.3 KB) test\_error.3dm (295.2 KB) the “test\_ok” was created in rhino6 and than opened and modified in rhino7 the “test\_error” was created in rhino7 “test\_o…

---

## [api.scene.getData with runtime id](https://discourse.mcneel.com/t/api-scene-getdata-with-runtime-id/119227)

<div class="topic-metadata">

**Author:** [@jonatan.bergstrom](https://discourse.mcneel.com/u/jonatan.bergstrom)\
**Replies:** 2\
**Last updated:** [March 5, 2021, 9:23am UTC](https://discourse.mcneel.com/t/api-scene-getdata-with-runtime-id/119227 "2021-03-05T09:23:46Z")

</div>

Hello, I have built a react application that loads multiple plugins into a scene via “registerCommPluginAsync” after which i need to get som params(outputs) from that model to manage the camera. I have been looking thr…

---

## [Apply parameters to ShapeDiver model during mount](https://discourse.mcneel.com/t/apply-parameters-to-shapediver-model-during-mount/118391)

<div class="topic-metadata">

**Author:** [@post8](https://discourse.mcneel.com/u/post8)\
**Replies:** 3\
**Last updated:** [February 15, 2021, 9:40am UTC](https://discourse.mcneel.com/t/apply-parameters-to-shapediver-model-during-mount/118391 "2021-02-15T09:40:34Z")

</div>

I’d like to initialise the ShapeDiver Viewer and during mount apply a set of parameters. A couple of issues: when applying them, this could result in a white screen. code: Object.keys(applyParameters).forEach(async ke…

---

## [Load multi tickets and bind them to a dropdown list with vuejs](https://discourse.mcneel.com/t/load-multi-tickets-and-bind-them-to-a-dropdown-list-with-vuejs/113043)

<div class="topic-metadata">

**Author:** [@myself](https://discourse.mcneel.com/u/myself)\
**Replies:** 2\
**Last updated:** [November 27, 2020, 6:24pm UTC](https://discourse.mcneel.com/t/load-multi-tickets-and-bind-them-to-a-dropdown-list-with-vuejs/113043 "2020-11-27T18:24:27Z")

</div>

Hi guys, I have binded my dropdown list component in vuejs to my shapedivers models array, I want to change the model by item (ticket) selection accordingly, Each model object contains an id a name and a ticket, Howev…

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