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

Python: NURBSSurface to Surface / Normal

Using Python. How do I get the normal of a planar NURBS surface? Is this possible? Also how to I convert a planar NURBS surface to a regular surface so the normal can be accessed? 5 posts - 2...

View Article


Image may be NSFW.
Clik here to view.

EarthAnchorPoint not set in Rhino 8.8

Hello , In Rhino 8.8 it appears that the EarthAnchorPoint command does not remember the Lat, Long, Elevation data when set and then queried. Is this happening to anyone else? 4 posts - 3 participants...

View Article


Image may be NSFW.
Clik here to view.

Question: Input Geo Keeps Moving Miles Away with no Transform

Hi, I had a look and couldn’t find a topic that answers this. I haven’t really Csharp-ed since Rhino 6 and I’m using Rhino 8. My brep input, which I’m inputting as GeometryBase keeps outputting miles...

View Article

Image may be NSFW.
Clik here to view.

Tree operations python Grashopper

Hi all, I am writing a simple script that takes a tree, and returns false if any of the items inside the list is false. The script is working with my test list #test = [[False, True,True], [True,...

View Article

Image may be NSFW.
Clik here to view.

Rhino 8 Script Editor - half of the error message

I’m running the latest service pack on Rhino 8, working on developing some new python3 modules. When the code hits an exception, the editor displays a clipped error message on the offending line as...

View Article


VScode to Rhino8 bug

Hi there, I love the new feature to be able to run VScode and visualise on Rhino8 through Rhinocode. The feature works well for me, however sometimes on running the VScode file, I get the error...

View Article

Image may be NSFW.
Clik here to view.

Python Line Perpendicular to Surface Normal

What’s the best approach to creating a line perpendicular to a surface normal so that it runs on the surface? 6 posts - 3 participants Read full topic

View Article

Python Relative to CPlane Origin

After using the following code, how do I add a line relative to the plane’s origin and X, Y parameters? If I try to add any objects they are relative to the WCS origin. plane =...

View Article


ETO GridView rhino 8 and python 3

Hi all, Trying to create a simple ETO modeless dialog in Rhino 8 and Python 3 with a GridView. I cannot seem to get the DataStore contents to render in the table. The data does exist, and adding a...

View Article


Creating a RhinoScript to add text to the saved filename

Hello all, I want to open .dxf files, edit them and then (by using a command) save them as .dxf again without selecting the file type over and over again. The standard save filetype is alsways .3dm...

View Article

Image may be NSFW.
Clik here to view.

Issue: RH8 ScriptEditor can't run my normal python code

Hi there, I am trying to runa py3 script in the scriptEditor that writes data to Google Firebase, but I get an unexpected error. The script runs fine if I run in python3.11 from the powershell,...

View Article

Lates update just broke my compiled grasshopper tool in RH8

The latest Rhino 8 (8.9.24163…) update is causing us problems with both Python2 in Rhino and with our compiled grasshopper tool (script works fine in player and grasshopper)…both won’t really work and...

View Article

Image may be NSFW.
Clik here to view.

How to change ScriptEditor c# icon in Grasshopper?

Hi How to change ScriptEditor c# icon in Grasshopper? icon.gh (7.3 KB) i use this method but Error=Cannot assign to ‘BitmapAsTextureFileReference’ because it is a ‘method group’ [38:5] @Mahdiyar...

View Article


View Capture to image script works in R7.0 but doesnt in R8.0

Hi All, Can anybody help troubleshoot this script? It works flawlessly in R7.0 but produces blank images in R8.0 CaptureLayoutToImage.py (2.4 KB) Thanks in advance, 1 post - 1 participant Read full...

View Article

Grasshopper Plugin running Python

Hi all, I’m new to python development and I’m wondering how it can be integrated into a Grasshopper plugin. Out team develops Grasshopper plugins for in-house use. One of our developers uses python...

View Article


Image may be NSFW.
Clik here to view.

Rhino 8, Script Editor - Collapse to Definitions missing

Dear Rhino-Team, it would be great if you could add the “Collapse to Definitions” option to the Rhino 8 Script Editor like it was with the PythonEditor Best Peter 1 post - 1 participant Read full topic

View Article

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
Browsing all 5938 articles
Browse latest View live