AddDetail script crashing Rhino
I can’t figure out why my script is crashing rhino. I can successfully complete the layout but not the detail. The instant before rhino crashes a white rectangle appears on top of all four rhino...
View ArticlePython command, have to click viewport to execute
I have a Python script that I have written (with some help from ChatGPT) to replace a certain set of block instances with another set of block instances. A bit like BlockReplace, but for multiple...
View ArticleUsing import utils (to create location dict)?
I can’t seem to track down “utils” in the API pages. Anyone have a link to where I can read up on this? Thx Alan 6 posts - 3 participants Read full topic
View ArticleRhino python Quadremesh
Hi all I want to edit one rhinocores about Quadremesh. I want define parameters of Quadremesh which the target edge length is 1 mm as below shown. I search for a lot of information and can only set...
View ArticleHow to display temporary text follow to the cursor before adding?
I create a script that adds text using an eto form. When the button is clicked, then select the point to add text. I need to display temporary text according to the cursor. When clicked will add text...
View ArticleScript Editor - Indent/Outdent multiple lines at once?
If I missed tabbing/indenting/spacing a line, is it possible to grab that line and all “sub-lines” nested beneath it, and indent/outdent all at once? 3 posts - 2 participants Read full topic
View ArticleIsPolyCurve(), IsPolyline() vs. IsCurve() behavior
@stevebaer @Alain IsPolyCurve() and IsPolyline() use rhutil.coercecurve(object_id, raise_if_missing=True) but IsCurve(object_id, raise_if_missing=False). This seems odd to me or is there a reason? In...
View ArticlePython-Script examples, creating meshes?
Hi…, I am a part time scripter. I want to write a script, which generates an array(e.g.10x10x10) of meshboxes cut by a sphere. The boxes should be approximated and not have more than 6 faces. Where to...
View ArticleBaking List Of Views
Hi everyone, I’m working on a python script that adds named views to the document by receiving an input from the query Viewports node in Rhino 8. I am using the new Rhino 8 viewport nodes to create...
View ArticleRemoveHoles method doesn’t work
Hi everyone, I am trying to close an inner hole with this script but it returns a null. Does anyone know what I am doing wrong? Thank you! 1 post - 1 participant Read full topic
View ArticleError at export time
I do have the following script: import rhinoscriptsyntax as rs import os def AutoExportWithOrigin(): ids = rs.GetObjects("select objects to export", preselect =True) if not ids: return bb =...
View ArticleShortest path with Python
Hi In this example i find the shortest path using Short Walk plugin Is there a way to find this path with python ? find_path.gh (20.2 KB) 1 post - 1 participant Read full topic
View ArticleHow to encode a list
Encode1.gh (2.4 KB) I want each sublist in a to contain all the elements from x at least once. If an element was missing, it has been replaced with a repeated element from the sublist. @Mahdiyar 3...
View ArticleGrid division of floor plans
How to find the different placement of units on a floor plan in a grid cell while considering minimum and maximum area limits for each type of housing, which is 10 cells for two types of housing and 6...
View ArticleBatch thumbnail replacing for Rhino Materials
Hello everyone. Recently I’ve discovered there’s a possibility to replace a thumbnail of the Rhino Material File (.mtl). I have plenty of my own materials and replacing their thumbnails would make it...
View ArticleHow to render a model with python totally?
Dear All, I want to render a model with my own settings by using python scripts totally. Would you please give me one simple example code? I am new to rhino.python and get muddleheaded with the api...
View ArticleDisplay Pipeline and DrawZebraPreview problem
Hello, as you see in the video ZebraPreview always visible even the brep is not connected or recompute the solution , and when i open ghpython editor and click ok or test the brep disappears How to...
View ArticleExport an object as a dxf file with RhinoScript
Hello I would like to be able to automatically save each object of my rhino model in a different dxf file. I know it can be done with a rhino script, but I don’t know what code to use to export...
View ArticleJust got started with Python in Grasshopper
Hello, everyone. I’d like to learn Python, but am not sure if I should invest my time. I’m an architecture student. What are the reasons you are using Python in Grasshopper? 1 post - 1 participant...
View ArticleBounding Box Indeces
Can someone explain how to control where (a point, text, etc) gets added in relation to a bounding box? If this is the bottom-center of a 3D bbox: bot_ctr_pt=(bb[0]+bb[2])/2 and this is the...
View Article