Change radius of circle
Looking for a way to change the radius of a circle using Python in Rhino6. Rhino Common Ok to use. Thanks. Eric 3 posts - 2 participants Read full topic
View ArticleDifferent results when calculating curve offsets
Hey there, so i stumbled again upon this strange behaviour in RhinoCommon using Python and i`m wondering where it is originating from. When offsetting the same curve with Curve.Offset or...
View ArticleCreating a processing-like Animation class in RhinoPython
I have posted an example on GitHub for creating a processing-like animation using RhinoPython, which is lighter than using Grasshopper’s timers and makes the code more maintainable because the...
View ArticleHelp - macro toggle between two commands
Hi, i’ve never scripted anything in rhino, but i would like to know if there is a way for me to create a macro that alternate between two commands e.g. 2 display mode or align the gumball to...
View Article3d DLA question(Diffusion Limited Aggregation)
Hi all, I’m here with another DLA related question, I am trying to now generate a DLAsystem using ghPython, previously I learned how to do it in 2d and now im trying to create it in 3d, I followed an...
View ArticleDraw point with Rhino.Display.DisplayPipeline.DrawDot() in RhinoPython?
Hi, Does somebody have an example on how to draw a Rhino.Geometry.Point3d() with Rhino.Display.DisplayPipeline.DrawDot() in RhinoPython? Am I right in the assumption that this method just draws a dot...
View ArticleExpiresolusion error
Hi, I am trying to use the Expiresolution() in Ghpython, however, i get this message: ExpireSolution() takes exactly 2 arguments(1 given). However, when i look at the documentation, it says it takes...
View ArticleMake2d set output layers
Hi, is there a way to script make2d command with defining output layers in Rhino 7, in way like in Rhino 5? in rhino 5 I was using rs.Command(" -Make2D DrawingLayout=CurrentCplan "...
View ArticleRhino 7 behaving slower?
Rhino 7 looks for me like it is behaving slower with Grasshopper Python and C# I do not know if it is a problem with my computer or what ? but I wonder if someone else feels the same ? could someone...
View ArticleHow to run a *.cs script?
i’ve got a script i found that is an *.cs file, the syntax looks like rhino but i’ve never medded with c scripts before. thank you 3 posts - 2 participants Read full topic
View ArticleError with rs.OffsetCurve (rhino5)
I am trying to script offset of simple closed shapes (rectangles and concave shapes with no crossing lines nor any interior voids). rs.OffsetCurve will fail for some parameters when my understanding...
View ArticlePolyCurve Segments
Hi, I believe a PolyCurve can be made up of different line types, like straight lines and arcs? If this is true is there a way to gain access to each segment to control, for example, the end points of...
View ArticleGetObject can´t select only curves
Hi, I try to select only curves with a GetObject( ) using GeometryFilter = ObjectType.Curve but the edges of a mesh are included in at the possibilities os selection. How can I select only Curves?...
View Articlers.GetPoints() method - in_plane option is 'too constrained'
The optional argument currently accepts only a Boolean value to constrain the points to the active CPlane (True) or not. Methinks this is too limited - instead of a binary yes/no answer, why can’t...
View ArticleNurbs to mesh in python
Hi, I have a few Nurbs generated with rs.AddSphere in my python script and I wanted to convert them into meshes within the script. However, it does appear there is a rhinoscriptsyntax MeshToNurbs...
View ArticleRhino.MaterialColor to RGB values?
Hi, I have a problem to read rgb values in Rhinoscript as Rhino.MaterialColor returns something like this: 11908533 That’s supposed to be grey… How to decode it to r / g / b values? … I solved this as...
View ArticlePlease help me to exit While Loop in python when I press the enter key
I want to know how to exit While Loop when I press the enter key. I want to do a specific action until I press Enter. Please give me a simple example. The code I tested. import rhinoscriptsyntax as rs...
View ArticleMerge Point Clouds (IronPython)
Good evening! Although not necessarily evening I recently wrote a small script for point clouds, check it out! Merge.py (656 Bytes)...
View ArticleClick Limit on Long Option List
Is there limits that come with long option lists on GetString, GetLiteralString or Get ? For example, with the following list you can select the option by using the letter or by clicking on the option...
View Article