Quantcast
Channel: Scripting - McNeel Forum
Browsing all 5793 articles
Browse latest View live

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 Article


Different 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 Article


Image may be NSFW.
Clik here to view.

Expected Point, got Point

Why? 3 posts - 3 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Creating 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 Article

Help - 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 Article


3d 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 Article

Draw 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 Article

Image may be NSFW.
Clik here to view.

Expiresolusion 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 Article


Make2d 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 Article


Rhino 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 Article

How 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 Article

Error 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 Article

Image may be NSFW.
Clik here to view.

PolyCurve 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 Article


GetObject 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 Article

rs.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 Article


Nurbs 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 Article

Rhino.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 Article


Please 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 Article

Merge 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 Article

Image may be NSFW.
Clik here to view.

Click 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
Browsing all 5793 articles
Browse latest View live