Rhino 8 rs.GetSettings not finding ConfigParser
Hello, There seems to be an issue in Rhino 8 where the ConfigParser module is not in the expected place. How do you feel about creating a corresponding rs.WriteSettings? Or maybe it is time to just...
View ArticlePython, unable to import Pandas in Python3Component
Hello, Like many other colleagues, we are still facing the error : "1. Error running script: partially initialized module ‘pandas’ has no attribute ‘_pandas_datetime_CAPI’ (most likely due to a...
View ArticleRhino API's `Arc.StartAngle`
When attempting to write Arc.StartAngle using the Rhino API, consistently returns zero. Is this the expected behavior?" 2 posts - 2 participants Read full topic
View ArticleRhino 8 Script: Editor keeps loses caret
When using script editor in R8, sometimes the caret (text cursor) will disappear after each key stroke, and I’d have to click again to input the next charater. I think it mostly happens after moving...
View ArticleISSUE: rs.DeleteObjects() doesn't delete hidden geometry in RH8
Hi there, when I use rs.DeleteObjects() to remove geometry from the scene, hidden objects are not deleted. The documentation doesn’t say anything about the visiblity state. please see my script to...
View ArticleHow to properly interface with GUIDs
Hello I am trying to understand how to properly interface with Rhino GUIDs in python. When I want to access the properties, whether geometric or otherwise, of the object the GUID represents should I...
View ArticleTreehelpers th.list_to_tree is failing to output in Grasshopper
I have implemented Treehelpers in a python script (attached). I am running the script in a GhPython component. When I connect a panel to an output named x, I have a null value, thogh when I print the...
View ArticleGet object GUID in grasshopper Python component
Hello, I am trying to reference a piece of geometry, eg a BREP, into Grasshopper from Rhino, then plug this into a Python component and find out what its GUID is. Im using RhinoCommon not...
View ArticleUserText vs UserString vs UserDictionary
Hello all, I am trying to work with ‘Attribute User Text’ via python in grasshopper. I can get and set these Key and Value pairs with rhinoscriptsyntax as below, My first question is, is there a way...
View ArticleNaming object fail
Hi, using visual studio and C# to create some automation I need to assign a name to an object as follow: obj.Object().Attributes.Name = obj.Object().Name.Replace("PS", "").Replace("SB", "") +...
View ArticleIssue: Rhino8 freezes when I try install pip library in the ScriptEditor
When I try to install a python3 pip package in the ScriptEditor, the application freezes when I run the script. This also happens for other libaries (e.g. “numpy”), when I include a version number...
View ArticlePython Script equivalent to RhinoScript Rhino.SetCursorPos
Hi there, I’m pretty new to programming and all. I’ve been trying to write a Python version of Jarek’s SetTargetToCursor script to learn Python but also to try and make a cross-platform version of the...
View ArticleScripting Python to add circles to rectangle vertices
Hi there, I’m very new to python scripting and I haven’t had a lot of time to get to learn it. I’m trying to add circles to the corners of a rectangle but I’d like to be able to do it without the user...
View ArticleComment/uncomment multiple code
I’m trying to use the command ⌘+/ to comment/uncomment multiple lines of code in Python /rhino Mac, but it doesn’t work. Any suggestion? Thanks, Roy 3 posts - 2 participants Read full topic
View ArticlePython Fillet An Edge?
Fillet an Edge I want a simple python FilletEdge function like this: box = rs.AddBox(…) ## pretend 10x10x10 point_on_edge = [10, 10, 0] ## top right vertical edge. FilletEdge(box, point_on_edge, 2)...
View ArticleScript Editor - can't find image path after publishing script to rhp
Hi there, I am just starting to use the script editor in Version 8 (8.3.24009.15002, 2024-01-09) on a Mac computer. My script is written in python and I want to get an rhp that I can share with...
View Articlers.GetLinetype() error in V8
Running the following code: import rhinoscriptsyntax as rs lt_str=rs.GetLinetype() This brings up the linetype choice dialog. If you hit Cancel in V8, you get the following error: Message: 'NoneType'...
View ArticleCustom Progress Bar in Rhino8 (Python/Threading/ETO)
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleSystem.IO is missing DriveInfo in python2 (Rhino8)
If I start with the python 2 note, I get an error “System.IO object has no attribute DriveInfo” If I start with the python 3 note, the DriveInfo stuff is missing from the Intellisense but it compiles...
View ArticleBug running script rhino 7 and 8
Hi every one we have found a bug with rhino script Our script run correctly if we run it with a script editor but he didn’t run correctly with a toolbar buton the problème is the name “emphasis” layer...
View Article