Is there any python script that will group the collets individually?
1 post - 1 participant Read full topic
View ArticleAccessing objects triggered by events
Hello, I am working on building an event handler that mainly writes User Text to objects given certain conditions. I have discovered that some of the events return a Rhino object, while others do not....
View ArticleScript Grasshopper and Eto
I’m starting to create scripts with grasshopper and Eto, but I’m having some problems, I need help, I have some problems with Eto and Rhino closes when I try to run the preview import Rhino import...
View ArticleHow do I get the Translation of an Object?
I tried this without success: import os import rhinoinside try: rhinoinside.load() except: pass import System import Rhino file = r'..\3dm_files\a.3dm' doc = Rhino.RhinoDoc.OpenHeadless(file) for o in...
View ArticleDuplicate, Untrim and Extend sub-object surface from GetObject
I’m using Rhino.Input.Custom.GetObject() with a filter for Surface and with sub objects allowed, and it seems to work. However, the results from the Objects() seems to be either Surface or...
View ArticleSurface points not on surface
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleHow to use Surface.ClosestPoint method?
I’m lookling at this: https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.surface/closestpoint Expecting to be able to do this: u1, v1 = surface1.ClosestPoint(surface2.PointAt(0.5, 0.5)) But...
View ArticleGalapagos graph plot in Python
Hello everyone, I am trying to replicate the plot that Galapagos gives me with Python. I recorded the fitness values that I got from my simulation and used it to make a graph. It looks very similar...
View ArticleRhino fails to install Python runtime
Hi folks, Currently experiencing an issue with Rhino where it is failing to install the Python runtime. This occurs when opening the ScriptEditor or when running Grasshopper and attempting to add a...
View ArticleDimStyleTextAligned seems to not be working
In Python when I run the following code, I get this error: AttributeError: ‘DimensionStyle’ object has no attribute ‘TextAlignment’ import rhinoscriptsyntax as rs rs.AddDimStyle('test')...
View ArticleRhino 8 Script Editor - Inconsistent Text Resizing Functionality
Rhino version 8.10.24226.13001 In the legacy Python Script Editor, I am able to resize the text in the editor AND in the help panel by using Ctrl+MiddleMouseWheel. In the new Script Editor,...
View ArticlePlace objects along spline, variable distance from CSV file?
Hi, I have spline that I need to place objects along. My problem is that the I need to place every object a certain distance from the spline starting point. I have a csv file that has every points...
View ArticlePython script output
Hi, How can I assign two values to the output tabs A and B of the Python Script Editor in the “Script Instance template”? """Grasshopper Script Instance""" import System import Rhino import...
View ArticleRhino 8 Python Crashes
I saw a few similar posts, but in my case, Rhino opens fine, grasshopper opens fine. When I try to make a python scripting component in grasshopper, it totally freezes, then Rhino just closes. I don’t...
View ArticlePython 3.9 component crashes while processing some BREPs in rhino 8
260924DissertationGhScriptKripa.gh (2.9 MB) I am trying to process BREPs which represent rooms in my python component. Will first convert them into topologic cells (TopologicPy python library) and...
View ArticleBug report: "_-ScriptEditor Run" is not printing anymore
Hello! I am using the _-ScriptEditor Run .\testrh.py to execute a file as a command but it’s not printing anymore the print() functions. This has stopped working in the latest versions before it was...
View ArticleScriptEditor, First Impressions, Ideas, and Improvements
Hello Usually, I am not a big fan of code editors integrated into software, but I have to admit that you have managed to create an editor that integrates perfectly with all the languages and...
View ArticleRunscript + browse?
I wanted to temporarily resuscitate some old VB Rhinoscripts, but first to test them, I wanted to run them with the LoadScript command - they are already set to run immediately when loaded. This works...
View ArticleChanging document properties in async thread crashes Mac, but not Windows
I’ve created a context manager that I use in the plugin I work on, that looks like this: class pause_redrawing: def _on_enter(self): self.previous_redraw = rs.EnableRedraw(False) def _on_exit(self):...
View ArticleBug in rs.GetLine() prompts
With the following code: import rhinoscriptsyntax as rs msg1="Pick first point of line in Top view" msg2="Pick second point of line in Top view" line_pts=rs.GetLine(1,message1=msg1,message2=msg2) the...
View Article