Change Layer of Block
Hi all, I really need a script for changing the layer of all objects in a block. For example; There are some blocks with lots of objects and blocks in the file. I want to move all of them into a...
View ArticleHow to escape from script stably and reliably
Hi guys, I was trying to use ESC key to break a loop, and found out 2 ways to use ESC key. One is scriptcontext.escape_test(False), Another is use OnEscapeKeyPressed as a event handler. But after...
View ArticleIntersectLines code returns error
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleEto Height Objects
Hi All, def __init__(self): self.Title = "Title" self.Size = Eto.Drawing.Size(150, 100) self.Button0 = Eto.Forms.Button(Text = 'ONE') self.Button1 = Eto.Forms.Button(Text = 'TWO') layout =...
View ArticleCreating a new layer using Python script
Hi all, I have a question about the creating a new layer using Python script. I want to create 10 layers and naming 01 to 10 separately as below shown I also tried to adapt the Python script from...
View ArticleSmall copy/paste error in rs.PointTransform()
(both should be ‘point’, not ‘vector’) 1 post - 1 participant Read full topic
View ArticleSelecting object faces in python
Hi, In Rhino it is possible to select a specific face on an polysurface (like on a box) and assign a material just for this face. The final result can be that the box has 6 different materials (one...
View ArticleImport blocks from another file using InsertBlock?
I am trying to import block definitions from another file using Python. I actually found someone asking a very similar question before, but I simply cannot get it to work. Previous question: Insert...
View ArticleHow to script ReplaceBlock?
I am trying to script ReplaceBlock and not having any luck. If I run _-ReplaceBlock I actually get a command line option to “SelectFromBlockDefinitionList”, which then opens a dialog where I can...
View ArticleHelp to reverse dividend quadrant surface
hi everyone I need help to reverse the quad level in this script, actually away from the curve should be a smaller division private void RunScript(Surface S, List<Curve> C, int i, ref object A)...
View ArticleModify Rhino PBR Material With GH Python Component
Hello, I’m using the new Rhino 8 Material nodes to create custom materials from within GH but the features missing are being able to control the Roughness, Opacity/Transparency of said materials. I am...
View ArticleUsing CreateInterpolatedCurve properly
Anyone know why this little loop is happening when I use CreateInterpolatedCurve am I using it properly ? I derive a series of points and sort them by x axis value; this is the list...
View ArticleAddDetail 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 4 posts - 2 participants Read full topic
View ArticleSection thickness based on per-face properties?
If I were to assign, say, a specific material or display color, to the face of a cube, could I get the Section tool or ClippingPlane to show that face (brep?) as .7mm, and the rest of the cut faces as...
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 Article