Best Methods to Navigate DataTrees in Python?
Hi, This is a general question on working with Grasshopper DataTrees using Python. Assuming that I have a DataTree with multiple levels in the path (is ‘levels’ the right word?), is there a good...
View ArticlePython 3.9 script engine cannot load properly
Hello everyone, I’m using grasshopper new python script component to import and use my custom python libraries inside grasshopper. At first launch of rhino everything goes smoothly and I can use my...
View ArticleBUG? Rhino 8.5 Opening ScriptEditor switches the file to ReadOnly
Following the update to Version 8.5.24051.15001, opening the ScriptEditor switches the open file to ReadOnly mode. This prevents the file from being saved, prompting the user to “Save As”. This only...
View ArticleAll files become "read only" with self compiled plugin
Greetings, I recently upgraded to Rhino 8 and found a strange and - at least for me - quite annoying behaviour. I assembled with the Script Editor a few scripts in Iron Python (they all work if they...
View ArticleCall is ambiguous... Curve.TryGetPolyline(...)
Dear all, i am trying to re-write a script from ironpython for python3: obj = rs.GetObject() if rs.IsPolyline(obj): points = rs.PolylineVertices(obj) if points: for k, point in enumerate(points,...
View ArticleSimple Python Scripts For Architecture
Hi There, I would like to start a discussion about what I perceive to be low hanging fruit problems that can exponentially help the base users with getting their work done. In particular simple...
View ArticleAutomate the Script Compiler?
Is there a way to automate the Script Compiler app (for Python and RhinoScripts), so we can have it open a project and compile it, without manually opening the compiler? Any command-line arguments...
View ArticleRhino 8 Distance() method
Is the Distance() method in the rhinoscriptsyntax library broken in rhino 8? This simple code gives me an error message in line 6 “Point3d object has no attribute Lengh”. It works fine in rhino 7....
View ArticleCenter of Buoyancy calculation error!
Hi there! I noticed differences between the calculation the Center of Buoyancy. Once for the clipped - underwater body and another time for the whole body in both cases for the same elevation of 10...
View ArticleC# Component
Hie, I am a Noob with c# component in grashopper. I try to copy a code. Exist a way to change the public class that c# component offer? Regards. 3 posts - 2 participants Read full topic
View ArticleHow to find if an object is a Lands Design object?
Hi, How can I find all objects that are lands generated? I am making some tools where the lands objects (like row etc) is messing up. – In another script I use rs.ObjectDescription(obj) to see if it...
View ArticleIssue: rs.MatchObjectAttributes() makes objects dissapear
Hi there, I use rs.MatchObjectAttributes() to clone the attributes (e.g. objectlayer, usertexts, etc) from objects, nested inside a block to their copies. (I use this mechanism as a workaround for...
View ArticleRhino 8 script editor
Hi, In the old “Rhino Python Editor,” the function descriptions automatically appear when you open the parentheses, providing very quick and efficient help. In Rhino 8’s Script Editor, this...
View ArticleHow to select a subd vertex with python
Hi, how can I select a subd vertex with python in rhino8? import Rhino import rhinoscriptsyntax as rs def edit_subd_verts(): filter = Rhino.DocObjects.ObjectType.SubD rc, objref =...
View Articleview.ActiveViewport.PopViewProjection() no effect
@dale I am trying to store and restore the current view. I based my attempt on Select object by WindowBox - #14 by dale but do not get it to work. Any hints would be greatly appreciated. Thank you -...
View Articlers.GetReal : How to create a list of predefined values?
GetReal has only one default number value. Can I get it to have a list of predefined values to click on? like [100 , 200 , 300] Thank you! 3 posts - 2 participants Read full topic
View ArticleWhat version of Python in implemented in Rhino 8?
Hi. I’ve got (simple?) question? Whar version of Python are we using “Python 3 Script”? Is it 3.7 (or previous) or 3.8 (or later)? 3 posts - 3 participants Read full topic
View ArticleError with loading pandas in rhino 8
Hello everyone, I have a problem with loading pandas in grasshopper in rhino 8. I got the error saying: partially initialized module ‘pandas’ has no attribute ‘_pandas_datetime_CAPI’ (most likely due...
View ArticleEditable python install
@eirannejad We get the error when we try to install the python package locally. What could be the issue? The importlib_metadata is in rhino python for sure. (3dec)...
View Articlers.MeshClosestPoint doesn't work
when i use the example code of MeshClosestPoitn : #! python 3 import rhinoscriptsyntax as rs obj = rs.GetObject("Select mesh", rs.filter.mesh) point = rs.GetPoint("Pick test point") intersect =...
View Article