Read and add in a dictionary values from EXCEL
Hello, I actually have a python code to read and retrieve data values into a dictionary using import CSV and DictReader. Simple datas well organized of customers (name, email, phone…) It works great,...
View ArticleIssue: layer attribute lost with rs.TransformObjects() on linked blocks
Hi There, There’s an issue with rs.TransformObjects() on referenced geometry. I use a script to recursively get all containing geometry from a block (in main.3dm), with nested linked blocks inside. I...
View ArticleMac R8 - SemiModalDialog crash
Hi there, a SemiModal Eto dialog crashes Rhino 8 for Mac (8.5.24032.06002,2024-02-01) Example script: ETO_SemiModalDialog.py (1.2 KB) Steps to repeat: From Tools > Script > Run choose the...
View ArticlePython script batch export vector pdf - no wireframe issue
Hi There, How can I use the viewcapture.settings to print vector pdfs with the display styles like hidden line. All the pdfs are coming out wireframe. I would like to avoid raster printing. Cheers. 1...
View ArticlePython script issue
Hello, I try to script my component in Python for GH. At the very beginning, I came across something odd, I provided a single Curve N1 in my script, and when trying to retrieve that Curve I got a...
View ArticleParameter needs GUID or string representing a GUID
Hello all! This is a dumb question - first time poster, I’m a beginner in python and gh-python, so apologies! There is a lot of refactoring to be made in this code, but for now I just want it to work...
View ArticleRhino.Python Get Key and Value
Hello to all, I am a beginner about Rhino Scripting so my issue is. I´d to get keys and values to variable. I used rs.getusertext but it took only keys to the variable. You can see at above the SS. it...
View ArticleXZ Plane can't do data conversion from integer to point
First-time poster here. I have a school project in Grasshopper-Python. I’ve been getting an error message in my code that I’ve been trying to troubleshoot for days now, but I can’t figure it out. So,...
View ArticleLoft: Vicarious argument deduced from default
First-day poster here. I have a school project in Grasshopper-Python. I’ve been getting an error message in my code that I’ve been trying to troubleshoot for days now, but I can’t figure it out. So,...
View ArticleRhino 8 Script Editor Bug?
Hi everyone. I’m encountering a weird bug inside the script editor(the one where you can access directly within Rhino). So, I wrote some python code in my second computer also in Rhino 8 and it works...
View Article[Wish] Forward/back button in the script editor
Forward/back buttons in Visual Studio are extremely useful. It’d be nice if we could have similar buttons in the new script editor. (By the way, though the Python 3 editor is currently lacking...
View ArticlePip install playsound - Rhino8 Grasshopper?
Is it possible to install and use libraries such as playsound with GhPython component in Grasshopper 1 or 2 ? Thank you! 5 posts - 2 participants Read full topic
View ArticleOs.getwd() returns wrong directory in Rhino8?
The code below returns the path to the folder containing the running script document in Rhino7, which is what I expect. In Rhino8, it returns C:\Program Files\Rhino 8\System (my script is not in that...
View ArticleBrep|Plane Intersection Python script
Hello, Team private void RunScript(Brep B, Plane P, out object Curves, out object Points) { // Write your logic here Curve Crv; Point3d Pts; Rhino.Geometry.Intersect.Intersection.BrepPlane(B, P,...
View ArticleOdd error running a script from a button
I figured this out, but I am posting this here in case anyone else runs across it. I has a comment in one of my scripts in which I had accidentally used a single ). Running that script from the editor...
View ArticleSelecting face at the end of a pipe
Hi, In python is there a way to select the end face of a pipe object in Rhino? 2 posts - 2 participants Read full topic
View ArticleIsPointInSurface bug?
I’m using the IsPointInSurface method to check what points are inside a closed surface. Initially it was all good but when I use strictly_in = True and I add a tolerance to the method, I still end up...
View ArticleOuter fillet
Resimdeki gibi dışarı Fillet yapan Script var mı? 2D Curve işlem yapılacaktır. OUTOR FILLET Sub TEST() Const rhObjectCurve = 4 Dim arrGet0, arrGet1, arrResult arrGet0 = Rhino.GetObjectEx("Select first...
View ArticleSetTextureMapping() synchronization issue
Hello everyone! I’m trying to create a Rhino command to randomly shift multiple objects’ texture mapping, but bumped into a bug, which I suspect to be an issue related to synchronization in the...
View ArticleScriptEditor and GH python component randomly fail to import numpy
I’m working on a python script in a GH component. When I run the typical: # r: numpy import numpy I sometimes get the following error message : “Error Importing Numpy: you should not try to import...
View Article