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

Layer by object color

Hi, I have a problem with a model that I imported in Rhino: all the meshes are on the same layer and I need to divide the model into different layer, based on the objects colors. It’s pretty simple:...

View Article


Rhino crashes while import OPCUA bib without any error message

Hey there, i am trying to automate the process of creating G-Code with the RhinoCAM2023 PlugIn with Rhino7. First i tried to do this with Rhino8, but there are problems in the communication to the...

View Article


Get world point from detail, need help

Hi guys, (@pascal) I am trying to get a point’s world coordinates by picking it on a detail. I found a way to get a point, check if it is within a detail, get the details PageToWorldTransform, but...

View Article

Cpython crash

Running this script from with ScriptEditor with a seleceted simple mesh crashes rhino silently remeshing.py (1.4 KB) 2 posts - 2 participants Read full topic

View Article

A Student's Apporach to Rhino for Architecture

Greetings, I’ve been developing a personal tool to allow me to only use Rhino to designing architecture. This post is both to ask for feedback on the idea/approach and the possibility to help someone...

View Article


Image may be NSFW.
Clik here to view.

RhinoCommon: unable to get RenderMaterial of object

Hi all, In a python script I’m trying to retrieve the renderMaterial of an object, but it seems I’m not doing it right. This returns an error: import Rhino objTypesFilter =...

View Article

Rtree methods for diagonal paths

I’ve been working on a pathfinder algorithm that finds the shortest path between 2 points through a given point cloud. For the most part it is working as intended but I noticed a weird behaviour that...

View Article

Image may be NSFW.
Clik here to view.

Project objects to surface

Hi Guys ive been looking everywhere for a script that makes it possible to project and object or multiple objects onto a surface. The “projectobjects” from pascal golay kind of works except it makes...

View Article


Image may be NSFW.
Clik here to view.

SetScale method is broken in Rhino 8

Hi, I used “SetScale” method in rhino 7. It worked fine. In rhino 8 it does not set the scale anymore. https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.detailview/setscale You can see the...

View Article


Image may be NSFW.
Clik here to view.

Rhino 3 Script Anatomy, 3.1 Programming in Rhino—wrong image

In the pdf you can download the image is correct (first below), but online it is different and not what is explained in the text (second below) correct image in pdf incorrect image on website (Rhino -...

View Article

Automate process

Hi all, I am working in 2d DXF files. Can i get a script to do these steps to every file in a folder? Join all Get X and Y dimension. Count curves Get total inches around perimeter Get total inches of...

View Article

Adding options to a custom command in Python

Hi all - I’m looking for a pointer or an example of using command line options in a custom command. I’m sure it is out there - I just can’t seem to find it! In the Rhino Python Editor I used...

View Article

What determines the order of buttons in a toolbar?

Hey guys! As the title suggested - what determines the order of buttons in a toolbar and how this can be modified? I created, with the help of the new Rhino8 Scripteditor, a Rhino Package with some...

View Article


Not a polyline curve. Type received:

I have been trying to make a python script in Grasshopper with chatGPT, be we don’t seem to be able to solve a problem with an input. I have made some grasshopper scripts, but I don’t really know...

View Article

Best solution to run async python scripts from C# plugin

Hello, I’ve been wrapping my head around calling custom python code from my C# Rhino plugin asynchronously. To explain the setup, I want to launch from a C# Rhino Command some piece of python code...

View Article


Image may be NSFW.
Clik here to view.

Making clickable icons through the display pipeline

I wish to be able to show icons in my Rhino Viewport and when I click on the icon a text box (or similar appears). I want to use this to show warnings in a model and only when the user clicks the...

View Article

Select profile of 2d drawing

Can someone give me a script to select the outside profile of a 2d part? 2 posts - 2 participants Read full topic

View Article


Python script

Hi, What does COM is not supported mean for the last line of my script: if (run): write_members_to_excel(filePath). If I alter my script to: …if (run): …write_members_to_excel(filePath). I dont see...

View Article

Image may be NSFW.
Clik here to view.

How do I remove edges and join them?

How do I remove edges and join them? I would appreciate it if you could let me know the problem. Please correct it. import rhinoscriptsyntax as rs def create_fillet_rectangle(): # Define the points of...

View Article

Image may be NSFW.
Clik here to view.

Unable to import Treehelpers in GhPython

Hello there! I am facing this issue while importing ghpython.lib treehelpers in ghpython. Any ideas about how to resolve this…? Many thanks for considering my request. 2 posts - 2 participants Read...

View Article
Browsing all 4131 articles
Browse latest View live