Quantcast
Channel: Scripting - McNeel Forum
Browsing all 5938 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Eto Dockable Panel (Python3 on MacOS)

Hi all I’ve written a script in Rhino ScriptEditor including user input, the UI is built with an Eto.Forms dialog box. Now, I would like to have this dialog box as a docked custom panel in Rhino, so...

View Article


Image may be NSFW.
Clik here to view.

GHPython Help Toolbar Deactivating Run Script

I started writing a few simple lines of a GHPython script and then opened the help toolbar to search for a Rhino.Geometry constructor. When I clicked on the object, it disables the Run Script...

View Article


Python environment corruption

Hi everyone, I’m using Rhino version 8.16.25042.13001 with Python 3. I only installed two additional libraries: numpy and matplotlib. I was fixing a legacy code that was passed down from my...

View Article

Create chamfered rectangles

I want to draw a chamfered rectangle, I define the drawing area, use the corresponding method, it doesn’t seem to work import Eto.Forms as ef import Eto.Drawing as ed form = ef.Form() drawable =...

View Article

Eto Dockable Panel (MacOS)

Looking for information, tutorials, … for creating a dockable Eto panel for a Rhino plug-in on Mac. All information i have encountered so far is aimed at Windows and I don’t get it working on my Mac....

View Article


BUG? - RhinoCode CLI

Hi @eirannejad I’m experimenting with the RhinoCode CLI on Mac, and I really appreciate this tool. However, I’m experiencing some unexpected behavior when passing commands. For instance, this line:...

View Article

Image may be NSFW.
Clik here to view.

Eto forms, Cell color from Layer color?

I do have this basic script and I do want if possible to get the cells from the Material column to have the same color as the color of the layer on which each object is on. It is possible to achieve...

View Article

Receive Remote Rhino Code in Subthread and run it Mainthread

socket_server.py (903 Bytes) I have wrote a simple script to recieve Rhino code generated by LLM and excute. However, this script runs in main thread which blocks the Rhino UI, I have to use “break”...

View Article


Image may be NSFW.
Clik here to view.

CurveBoolean with python

I’m trying to get a closed shape from some curves I have created with a script. From what I see all the boolean options that closed curves but i have come open curves. How can i get something like the...

View Article


MeshBooleanOptions

McNeel folks - I’m wondering if you can shed some light on what goes on under the hood in Rhino8 mesh boolean commands for the sake of us who are developing scripts that replicate them. Clearly the...

View Article

Proper Parenting for ETO forms in Rhino6 (Python)?

Two questions: Given MainWindowForDocument doesn’t exist in Rhino6, what is the most cross-platform-friendly way to parent my ETO forms? This is what I’m doing at the bottom of all my ETO forms’ code...

View Article

Image may be NSFW.
Clik here to view.

Angle Function in Grasshopper with Python Broken After Rhino Update

Hello, After I updated Rhino to version Version 8 SR17 (8.17.25066.7001, 2025-03-07), the Angle function in Grasshopper stopped working when I use it with Python and ghpythonlib. It still works if I...

View Article

Image may be NSFW.
Clik here to view.

CGAL on Rhino8 ScriptEditor

Hi, I recently made compas_cgal available for the Rhino 8 Script Editor. It should generally work on most Mac, Windows, and Linux systems (outside Rhino). Here are some examples: Examples — COMPAS...

View Article


Image may be NSFW.
Clik here to view.

How can parallel line segments intersect at parameter 0.5?

Hi, I’m working on a script that iteratively checks for line-line-intersections of a set of line segments that lie within the same plane. I’ve noticed that sometimes, two nearly parallel line segments...

View Article

Change Mesh Edge Thickness from python

Hi all! I’m trying to change the Mesh Edge Thickness from a Rhino Display mode directly in Python. I could save a custom display mode somewhere in the server and use it company-wide but there are some...

View Article


Image may be NSFW.
Clik here to view.

Cannot import custom C# library into GH scripting components

Hello everyone! I’m currently converting a large Grasshopper script into a C# library to improve scalability and (potentially) enable collaboration in the future. My goal right now is to make a custom...

View Article

class_Drawable

This is the first time I’ve used a class to encapsulate some custom methods. It’s a challenge for me. I failed immediately, I felt like I was going to start losing my hair, and the community was my...

View Article


Creating a hollow vessel tree

Hey there, I am trying to create a vessel tree in Rhino. The vessel tree is built with bifurcations, means every vessel eventually splits in two smaller daugther vessels. Because we will need trees...

View Article

Image may be NSFW.
Clik here to view.

A script to mesure a total length of selected objects (boxes)

Hi folks, I often have to assemble objects, such as carts, from a profiled pipe. And then the customer asks to calculate the length of all the segments. I thought that if all the parts differ from...

View Article

Image may be NSFW.
Clik here to view.

Scripting Cage_Edit function

Hello everyone, I’m currently working on a problem related to automated surface deformation in Rhino. Initially, I developed a Grasshopper model to achieve this, but I wasn’t completely satisfied with...

View Article
Browsing all 5938 articles
Browse latest View live