Integrating External Python Script with Grasshopper - Help Needed
I’m encountering issues running a Python script in Grasshopper, causing system crashes. Seeking advice on creating toggle switches and variables in Grasshopper to run the script externally and display...
View Articlers.MirrorObjects() is broken?
Hi everyone, seems like rs.MirrorObjects() in Rhino 8 is broken. snippet for test: import rhinoscriptsyntax as rs plane = rs.WorldXYPlane() square = rs.AddRectangle(plane, 300, 300) start_point = (0,...
View ArticleProblems with PyCharm as an External Code Editor
Hi guys, I recently started using PyCharm as my external code editor and successfully set up all the necessary libraries. However, I’m encountering some issues with the autocomplete feature. In this...
View Articlers.ProjectPointToMesh is not returning a list as expected
When using rs.ProjectPointToMesh the documentation says that it will return a list of points. Instead this is happening. It is not a Python list and does not behave like a Python list. print(Above)...
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 Articlers.PropertyListBox() is broken
Hi everyone, Looks like rs.PropertyListBox() for Python 3.9 is broken #! python3 import rhinoscriptsyntax as rs labels = ["a", "b"] values = ["1", "2"] name = "test" new_values =...
View ArticleHow to Zoom in GhPython Script editor in Rhino 8
Hi All Sorry for the donkey question, does anyone know how to zoom into the script in the new GHPython Script edtor in Rhino 8 (Python3)? It used to be the standard Ctrl+MMB but it doesn’t seem to...
View ArticleHow to explode nested blocks till individual block in Rhino
I want to explode nested blocks till individual blocks, So how to explode nested blocks using Rhino API. 2 posts - 2 participants Read full topic
View ArticleHow do I get my Rhino 8 trial to run Python 3?
Hello all… I’m coding in vscode and using Python 3.10. When I send my code to Rhino for execution I see that it’s running on Python 2.7. Here’s my sys.version info: [2.7.12 (2.7.12.1000)...
View ArticleR8 - Missing default linebreaks in rs.MessageBox
Hi there, the rs.MessageBox function in R8 does not add automatic line breaks when long texts are inserted for the message. Please try below script example: import rhinoscriptsyntax as rs msg = "This...
View ArticlePoint3d object can't be compared to None
I don’t expect this to gather a lot of support, but many of the RhinoScriptSyntax functions use/return Point3d objects and they can’t be compared to None. import Rhino.Geometry as rg ImportantPoint =...
View ArticleR8 problem with scripted _-Import and PDF
Hi there, i got an R7 script which imports a PDF file using below syntax: cmd = "_-Import {} ".format(chr(34) + file_path_name + chr(34)) cmd += "_PreserveUnits=_Yes " cmd += "_PDFScale=1 " cmd +=...
View ArticleNo language found in Py3 component
Hi Ehsan! Japhy mentioned that you might help with my GH/Python problem. My problem is related to the use of Python 3 in Grasshopper. I have Python 3.12.1 installed on my system (installation...
View ArticleHow to get a polyline from a line by inserting an edit point
Given a line class object (a simple straight line), I would like to insert an edit point at a length value and end up with a straight polyline. What’s the best way to do this? I can’t figure it out on...
View ArticlePython 2.7 dictionary question
I don’t use dictionaries all the time, so I’m not a master. I need to create a rather long one this time, with over 100 entries. However, using the test script below, the first entry does not seem to...
View ArticleHOW to switch IGES types of
for example IGES 143 ,IGES 144, 3D MAX 5.0. In Rhino5. Use Python achieve 2 posts - 1 participant Read full topic
View ArticleRhino.RhinoDoc.ExtractPreviewImage buglet
Hi there, using below code in R8 produces an error on a saved and opened document if no path is provided to the method: import scriptcontext bitmap = scriptcontext.doc.ExtractPreviewImage(path=None)...
View ArticleHow to navigate Rhino scripting documentation?
I can’t begin to tell you how unhelpful I find the Rhino scripting documentation. I think I must be approaching it wrong somehow. Can you tell me how I should be approaching it? Here is an example: I...
View ArticleDifference between IronPython2 and Python3 in Rhino 8
In Rhino 8 Grasshopper has new python components, IronPthon 2 and Python 3. Could anyone tell me the difference between these 2 components ?? by searching internet, what I understand so far is,...
View ArticleViewCaptureSettings.PointSizeMillimeters buglets and svg wishes
Hi @stevebaer, there is a small buglet with PointSizeMillimeters, the helpdoc states that it allows Double but a value of 1.4 is always reverted to r="2" in the svg file. some future wishes: Could you...
View Article