Call a recursive function in python as long as a condition is met?
@flokart wrote: Hi all, i tried to create a recursive function with python that choose a random point from a nearest points group. It works but now i want analyze the result and depending on some...
View ArticleFind center point of cylinder with RS
@beezerlm wrote: Is there a way to find the center point of a cylinder with RhinoScript? I have looked at rs.IsCylinder and rs.SurfaceCylinder but neither gives a center point from what I can see. I...
View ArticleMinimum oriented bounding box. Implementation in Grasshopper + Python script...
@ilmar_ik wrote: Hello for everyone, I am trying to understand the logic of minimum bounding box definition so I can implement it in python script node. The reason is very simple - I am planning to...
View ArticleAutolabel for solid nurbs
@pie.ventura wrote: hi to all boys, I need a hand. I’m working on this autolabel because I need to give an objname to all objects following an order like this script (by vector). This autolabel,...
View ArticleCan RhinoScriptEditor be replaced with 3rd party IDE?
@ivelin.peychev wrote: Is there IDE out there that can run PythonScripts in Rhino? Alternatively is there a way to connect RhinoPythonEditor with GIT / SVN / visualstudio services so I can continue...
View ArticleRhinoCommon - plane aligned boundingbox?
@Helvetosaur wrote: HI all, Having a brain fart here - I have some RhinoCommon geometry (curves, surfaces that are not in the document), and I need to get a plane-aligned bounding box for each with a...
View ArticlePython Script_Divide Curve and Add lines
@obhagwat29 wrote: Hello, I have started learning python with rhino. Here is simple problem which i am unable to solve ############################################## import rhinoscriptsyntax as rs c1...
View ArticleOffset curves consistently
@Dongyeop_Lee wrote: Hello all, I’m trying to make a C# component that will offset planar curves consistently regardless of curve directions. The process would be: Close all curves, if not closed. Get...
View ArticleFit Polynomial through a set of 2D Points with Rhino/Python
@Benjamin4 wrote: Hi everyone, is there a possibility to calculate a Polynominal through a set of 2D Points with Python or Rhino Script? I am used to Python programming and numpy would easily do the...
View ArticleSelchain behaviour change rhino 5 to 6
@Alberto wrote: Hi, I am trying to understand how the SelChain behaviour has changed in rhino 6. The following script has two different outcome in rhino 5 and 6: import rhinoscriptsyntax as rs...
View ArticlePython script "Converts text objects into single stroke curves"
@onlyforpeace wrote: hi, i ve a python script made by mitch to convert text to single stroke curve. i add a line to keep the name of the text object to the curve, but there is now a error message:...
View ArticleC# - close open curves
@Dongyeop_Lee wrote: Hello, I’m trying to close open curves using C# like CloseCrv command in Rhino. To begin with, I’m not sure what the right method is in Rhino Common. It looks like...
View ArticleMinimum bounding box python script
@beezerlm wrote: Is there a Rhino python script out there to find a minimum bounding box (or cylinder)? I ran across this from @Helvetosaur in 2013 - Sunday scripting - minimum 3D bounding box - along...
View ArticleFor loop error GHPython in Rhino 5.13
@avishek.das wrote: Hello all, I am new to Python scripting in rhino and for now following a simple tutorial from ThinkParametric. I have understood the basic of it. but the problem I am facing to use...
View ArticleSorting Curves into columns
@dustin_headley wrote: Hey there. Attempting to do a 2D sort of parallel curves with uneven seaming between the arrays (see below). First column is simple, having trouble once I get the next column....
View ArticleEmbedding python functions into toolbar
@danielogg92 wrote: Hi, I am written a function that will take a list of points and pipe diameter and create a pipe with a certain fillet radius. This is all contained within my .py file that I run...
View ArticleSave all -> reset script-engine -> run
@Willem wrote: Hi, I’m working with different modules imported in a single main python script. In order to run the scripts after editing them, I need to save all the scripts, reset the script-engine...
View ArticleHow to initialize an array of surface objects in RhinoPython?
@Rhino_Gandalf wrote: Hi everyone, I would like to dynamically add surfaces to an object array through Rhinopython. I tried doing this but it did not work out: import rhinoscriptsyntax as rs...
View ArticleOsnap numbers have changed in SR5
@DanBayn wrote: It seems that with the latest SR5, the OsnapMode behaviour has changed. image.png730x288 5.52 KB Was this intentional? I have users reporting that where they used to get Point + End,...
View ArticleHow to ensure consistency of normal direction while using Network curves in...
@Rhino_Gandalf wrote: Hi everyone, I am trying to figure use of NetworkSurface in Rhino using RhinoPython. Before moving to non-straight edge geometries, I am working on creating just a single...
View Article