Font Justification Script
I have to make a “BottomCenter” justification change to a “Simplex” font (with size of 2) and was hoping to use a script to do it. I have thousands of files that require this update. My coding...
View ArticleScript to give a bunck of layers random color
Hello! Is there a way to create a script that, once i’ve opened a file with a bunch of layers, give them a randomized color? I’ve tried to read some documentation but my skills in programming are...
View ArticleFunction definition gives error, running code outside function works
Hi, As the title says, I have a function sigmadef() that gives an error. The error is " object_2$2 is not callabe ", which google only links to Ladybug, but I’m not using that. However, when I comment...
View ArticleBug? ObjectLayout() always changes layer, even if layout parameter is omitted
Or am I just mis-understanding how to use an optional parameter? The line in question seems to always change the object to model space, with very unfortunate consequences if the user doesn’t realize...
View ArticleScript to automate a list of layers to rename
Hi. We are using rhino to nest parts on stock material. The problem is that we have to manually change layer names before sending them to the CNC cutter. Is there anyway to automate this layer rename?...
View ArticleCan I invoke Python script when develop GH component with C# and VSStudio?
I used to use ghpythonlib.components to invoke some Grasshopper functions when they are not offered by rhinoscriptssyntax, which is efficient. Recently I am trying to develop scripts using C# with...
View ArticleOpen Pdf file programmatically on Mac os
Hi there, i want to open a pdf file from a Python script on Mac os. Under Windows i can simply use: cmd = "_Run {}".format(pdf_file_path_name) rs.Command(cmd, True) Unfortunately, this does not work...
View ArticleEto form - Select and store objects with Button
Hi all. I want to select a bunch of Rhino objects when i click on the “Select objects” button, then I want the dialog form to come back before I click on the “Export” button. The export button will...
View ArticleSurface normal
I have a problem. when I run my cod on a surface normal points are true but when I run cod on one of the surface of my geometry when I explode it normal points runs away. 2 posts - 2 participants Read...
View ArticleImporting mesh from eto form doesn't show up in rhino view till window is closed
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleProblem with undoing material changes made via script
Hello, There seems to be an issue with undo not working properly for material changes made via a script. For example, when running a script that changes material color of a selected layer, and then...
View ArticleRhino start and _LoadPython
Hello Every time when Rhino5 start _LoadPython running. In the R7 it doesn’t work (Unknown command) What should I do? 1 post - 1 participant Read full topic
View ArticleWhat's the format for RichText text?
If I wanted to script portion of text object’s text bold for example. 4 posts - 4 participants Read full topic
View ArticleIs it possible to disable radiobuttons in an ETO form?
I would like to disable certain radiobuttons based off of other selections. Is this possible? Something like this: Thanks, Dan 3 posts - 2 participants Read full topic
View ArticleOpen webpage with python on mac
I’m wanting my python script to open a browser window. The following works fine on Windows, but not on the one mac that I have access to. Is there a way that would work on both platforms? "rs.Command...
View ArticleReturning new nodes on import doesn't work through eto window
Working off of this solution Import 3dm or stl and return new nodes - #2 by dale I tried calling this from a button in a Eto.Forms.Dialog window. When I query for the serial number it is the same from...
View ArticleVisualization the results in the CityGML data by using Rhino and Python
Hello, According to the energy demand values that I calculated and parsed into an XML file (GML file), I need to visualize my results using Python and Rhino. Basically, what I need to do is to color...
View ArticlePre-setting mapping for textures
Hi all, Maybe I need to go back to 101, but when applying woodgrain texture (drag and drop) onto an object, I’m never sure which way the grain is going to go. So I’m hoping for some pointers so I can...
View ArticleLine.ToNurbsCurve rhino 5,6 vs rhino 7
I noticed that there has been a change in behavior of Line.ToNurbsCurve() in Rhino 7 (I have SR9). On Rhino 5 and 6, when this method was called - the domain of the newly created curve always remained...
View ArticleUnrollSrf bug
Hi guys, I have a surface which acts weird when I unroll it using RhinoCommon. It’s easy to recreate using Python though. Run the following script on the surface in the file below: import...
View Article