Remove small holes of many selected breps
@Nico_de_Meester wrote: Rhino has the _UntrimHoles command with an option to remove all holes below a MaximumEdgeLength. Its a nice command but works only when you select a face of a brep. I like to...
View Articlers.PopupMenu stopped working here
@Helvetosaur wrote: Running this: import rhinoscriptsyntax as rs my_list=["ham","eggs","spam"] result=rs.PopupMenu(my_list) Gives Message: Object reference not set to an instance of an object....
View ArticleHow to get the number of surfaces?
@Alen_Russ wrote: Hi, When I select the surfaces I need to know the number of surfaces. eg.I select three surfaces and get the number is 3. import rhinoscriptsyntax as rs def do(): msg="Select the...
View ArticleUsing Python to find the owner of a file
@DanBayn wrote: I need to find a way to easily tell who created a Rhino model, without having to use Windows Explorer, right click on the file, pick Properties, Security, Advanced. I would like to do...
View ArticleWhat is the easiest way to know the minimal distance between 2 mesh (Objects...
@davedufour1991 wrote: Hi! So i will start with the code i use to do it : # Save mesh so we can calculate the smallest distance mesh_obj = rs.coercemesh(CurentObj) vertices = mesh_obj.Vertices normals...
View ArticleCustomer request: Save filename with date
@Michael_Meyer wrote: Hi @pascal , is there a script around, which saves Rhino files with date in the filename? Perhaps also a start for an advanced filename dialog (with date, username, etc.). Thanks...
View ArticleC# Parallel For Loop, "Data is incomplete or lost"?
@Antonio_Cersosimo wrote: Hi, recently I been trying to speed up some mesh and matrix operations, by using a Parallel.For loop When I do a simple Series the result seems to be complete, but when I use...
View ArticleRhino.Python Scripting: Automatic selection of certain curves
@ZKislost wrote: I have a model in which out of numerous amounts of curves in the work space, I only want four. So i have curve 1 and cyrve 2 on mesh A, and curve 3 and curve 4 on mesh B. I will do...
View ArticleAny method to change selected objects' layer in python script
@Kinan.Fleihan wrote: Hi, I am trying to build a script that changes the selected object’s layer into another existing layer, couldn’t find such a thing in the rhinoscriptsyntax documentation. any...
View ArticleFinding Rhinopython command equivalent
@Rhino_Gandalf wrote: Hi everyone, I have some queries regarding Rhinopython commands. In most cases, I am able to find the Rhinopython equivalent of the Rhino commands (or option from Rhino toolbars)...
View ArticleNew Script for Cosmetic
@Pongomarco wrote: Hello to the McNeel Community, I’ll probably need your help to create a script (or plugin I’m not sure yet ) to solve a problem I currently have. I need to add information like...
View ArticleRecording manual moves within a python script
@Telfer_Scott wrote: I’m wondering if there is a way to record the moves and rotations made to an object by a user within a python script? In short, the user would be asked to align an object using...
View ArticleNeed debug on a Very very simple python script. Just want to get the text of...
@Wiley wrote: import Rhino import scriptcontext import rhinoscriptsyntax as rs ids = rs.GetObjects("Select text dots") if rs.IsTextDot(ids): text = Rhino.TextDotText(ids) print text WHat is the...
View ArticleIt's Time for Sublime
@cdholjes wrote: Can whoever made the rhino atom listener/atom auto-complete for mac rhino-python make one for sublime? There is some small fraction of this world that would <3 you. Posts: 1...
View ArticleRunning rhino w/out directly opening program
@cdholjes wrote: Has anyone figured out how to execute rhino python etc without opening rhino. Effectively running an instance of it in the background. Similiar to the python QGIS workflow if anyone...
View ArticleRhinoScript Offset Closed curve
@direyes_11 wrote: Hello, everyone I’m trying to develop a script to offset a closed curve certain distance, I’m using this code but it does not work. It may be possible to get some help with it?...
View ArticleHow to call squish command in Rhino Script
@direyes_11 wrote: Hello, everyone I’m barely new to scripting and programming. I was trying to develop a script to create different surfaces automatic for my graduate project. In order for the script...
View ArticleReturn object parameters from its name
@juancarreras wrote: I need a Python script to rotate an object which I only know its name (I named it). How would I go about rotating it ? I would need to find its id from its name (is it possible?),...
View ArticleHow to access to each tree
@alexholden18 wrote: Hi everyone I am new to ghpython and I have a simple question. How can I access to a branch of data in ghpython. This is my code: import rhinoscriptsyntax as rs lines =...
View ArticleRhino save as
@J11 wrote: Is there a way to set the default save option in Rhino 6 to save as a Rhino 5 file. I looked in preferences and don’t see the option. Otherwise is there a way to script the setting to...
View Article