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

Rhino8 "Error Occurred During Language Initialization

Rhino 8 SR18 2025-4-10 (Rhino 8, 8.18.25100.11001, Git hash:master @ 5d157e876c23ece334d9c8666b8513ffc6d4a98d) License type: Commercial, build 2025-04-10 License details: LAN Zoo Network Node Windows...

View Article


Image may be NSFW.
Clik here to view.

Automating The Generation of Multiple Layouts

Is there a way to generate multiple copies of layouts (like 50 or more) at once with a specified naming system? If not, is there a way to rename multiple layouts with an ascending naming convention...

View Article


Image may be NSFW.
Clik here to view.

Script Editor Search&replace not working?

Dear all, in the new script editor i cant replace words in the “search field” by new words: When i click on replace or replace all, nothing happens. Is this a bug? Rhino 8 SR18 2025-4-10 (Rhino 8,...

View Article

Image may be NSFW.
Clik here to view.

Python Bill of Materials Script

I am using Rhino Version 8 SR18 (8.18.25100.11001, 2025-04-10) Commercial and I’m using Claude 3.7 Sonnet to write this python script to create a BOM. It is working almost perfectly, except I can’t...

View Article

Image may be NSFW.
Clik here to view.

Split brep not working in python?

I am trying to do what I thought was quite a straightforward thing to do in python: splitting a surface using either curves on it or surfaces perpendicular to it. However the splitbrep seems not to...

View Article


Script to generate numbered layers and assign random colors....?

Layer numbers could start with 1 or a selected numbers and then just add 1 to each additional layer. Example 1, 2, 3 all the way up to 1000 each would have a random color. I have been using a template...

View Article

Image may be NSFW.
Clik here to view.

Guidance Request: Making 447 .3dm files via parameters from an Excel file

I have a .3dm template file with existing geometry. I have an Excel spreadsheet with 477 rows holding a filename and an extrusion length. I need to open the template file, select a specific trimmed...

View Article

Image may be NSFW.
Clik here to view.

Rhinoscriptsyntax stopped working in gh

Hy all, yesterday while trying to load rhinoscriptsyntax inside a python3 component in gh i got the silliest error. i Cant figure put ho to solve it, i have tried uninstalling rhino 8 and installing...

View Article


Tracking point with mouse hover and showing Z-value

Hi Python Guru, I’m pulling my hair trying to fix this issue ‘Message: expected float, got Point3d’. I’m writing a python script that would allow me to hover my mouse over a group of points and it...

View Article


Parsing content of a 3dm file - identify large chunks

Hi I have a few files that get extraordinarily large and I cant seem to find out why. I’m looking for a way to parse length of serialized data in my 3dm file to identify large objects. Something that...

View Article

CaptureToBitmap doesn't accept ViewCaptureSettings

I’m trying to use Rhino.Display.ViewCapture.CaptureToBitmap method, and this method accepts one of two inputs, either RhinoVIew or ViewCaptureSettings; I’ve used it with RhinoView and it works fine...

View Article

Draw objects temporarily without adding them, but show as "part of scene"

I’m working on a grasshopper script where we are listening to a signal (via an event listener), and that signal will cause a geometry to be shown on the canvas. I want to avoid expiring a component...

View Article

Image may be NSFW.
Clik here to view.

Python slow to create geometry Rhino8

I’m working with a python developer on some scripts to create some objects, which includes lots of simple polysurfaces, and importing and placing a number of blocks. He’s added some time tracking to...

View Article


rs.GetPoint() won't accept a pasted coordinate but "_Point" will

Hi @dale, I use rs.GetPoint() to get a point (obviously) but sometimes I know the coordinate and have it copied to clipboard and want to paste that in instead, but that doesn’t work. But this works...

View Article

Cannot select objects while running semi-modal ETO dialogs

When running semi-modal ETO dialogs from the script editor in Rhino8, selecting objects while the dialog is running is possible. When running the script directly, it is not possible. In Rhino7,...

View Article


Can Automate selection be divided by Grid Line Cente?

There are so many commands of Selection [Sel],such as “sel block , sel volume, sel polsrf” etc.Is it possible to select left sided or right sided objects of the grid line centre,or above or bottom...

View Article

Rhino8 takes a very long time to close. Bug? Or improper object disposal?

I’ve had this problem randomly for a very long time. Sometimes Rhino8 takes a long time to close…even if the file is very simple. Not every time, but often. I think it has even happened with empty...

View Article


Image may be NSFW.
Clik here to view.

Script Input does not run when the code is inside a Script_Instance

@eirannejad I have created this small example to show that the script input does not run when the code is inside a Script_Instance. Is that intentional? I am trying to use the script input with some...

View Article

Q: CSharp-Example for ViewCaptureSettings(), and CaptureToBitmap()?

Hi…, it seams ViewCaptureSettings() isn’t working in Python at the moment: https://mcneel.myjetbrains.com/youtrack/issue/RH-85062 I assume ViewCaptureSettings() is only working in the ScriptEditor...

View Article

Image may be NSFW.
Clik here to view.

Only first mesh detected in multiple boolean intersections

Hi all, I’m working with a Grasshopper Python component where I loop over a set of street meshes (provided as a DataTree) and compare them against a single view mesh (provided as a list) using...

View Article
Browsing all 5938 articles
Browse latest View live