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

Looking for an example using Rhino.Geometry.PolyCurve.ToPolyline()

Hi, Looking for a python example using Rhino.Geometry.PolyCurve.ToPolyline(). Unsure of how to format the arguments? Eric 3 posts - 2 participants Read full topic

View Article


Expected Curve, got Array[Curve]

Hi, I am using GHPython on Rhino 6. I just offset multiple curves at various distances using the Curve.Offset in RhinoCommon. I want to find the intersection points of those curves but have the error...

View Article


Image may be NSFW.
Clik here to view.

Python rs.ProjectPointToSubD()?

Hi guys, I see there is no project point to subd for python yet, will that come soon? Can’t wait to start scripting for SubD 2 posts - 2 participants Read full topic

View Article

How to move control point surface by rhino Script

I want to adjust these control point surfce by script. But i don know how to move control point surface. Plese help me. 2 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Insert Block as Individual Objects

When inserting a block into Rhino one has the option to insert the block as individual objects. I can’t find a way to do this with code (python). Is there a function in Rhinoscript or Rhino Common?...

View Article


Using Overloads with DecomposeAffine

Hi- I’m relatively new to using python in Rhino and am trying to understand the use of Overloads with Transform.DecomposeAffine. When enter the following: block = rs.GetObject("",4096) XForm =...

View Article

Image may be NSFW.
Clik here to view.

Pip install for IronPython

Hi I have been reading these three threads from three years ago, trying to figure out if there is easier way to pip install python modules through cmd IronPython installation + Rhino 5 / Rhino 6 /...

View Article

Object name to Text Object

Hi all! Is there any way to create Text objects that automatically use the Object name? I’ve been trying to script this in Rhinoscript but nothing seems to work at this point. I’ve looked in...

View Article


Image may be NSFW.
Clik here to view.

Attempting to make a script to move an object a set number of units away from...

I am trying to figure out how to write a script to move one object a specified distance away from another object but I cant quite figure out how to do it. I am very green to scripting and figured this...

View Article


Problem with RhinoCommon, Intersection.MeshLine Method

Hi, I used “Rhino.geometry.intersect.intersection.MeshLine” method in C#-script component on gh for checking Ray intersection and it ran more than thousand times. The problem was that the memory usage...

View Article

Getting geometrybase from guid in VB script?

Sorry…I must be tired or really dumb…but just can’t seam to find how to do this basic procedure. Basically I have a surface GUID and want to extract it’s boundaries. I guess I need to use...

View Article

Numpy,Scipy through C# dll

I guess this is a long shot. I looked around the forum and haven’t found a complete solution. There is a C# project on github. https://github.com/SciSharp/Numpy.NET I wonder has anyone tried this or...

View Article

Intersection.RayShoot Method

Looking for an example using Intersection.RayShoot Method in python. I was hoping to find a function that would either select or return back the intersection of a surface. Not necessarily just looking...

View Article


SemiModal Dialog with Eto?

Hello, I am just getting into Eto with python to make a gui for a grasshopper project. Is there any way to open the dialog so that it is a semi modal window and can be used simultaneously with...

View Article

Image may be NSFW.
Clik here to view.

Get; Set; Control Points / Grips with Python

get_set_in_python677×529 20.5 KB How can we Get/Set a property using Python, for example data such as ControlPoint Rhino.Geometry.ControlPoint. C# and VB has the ( get; set; ) example, but I can’t see...

View Article


Print output

Evaluating PythonRhinoScript with Rhino. print is not displaying anything in the output window. Any guidance appreciated. 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Unweld Mesh at many vertices

Is there a way to use the UnweldVertex command through either rhinoscript, RhinoCommon or Grasshopper? I have several complex meshes like this fragment split_at_pts854×713 352 KB and I need to...

View Article


Import module in GhPython: error

Hello I install a module for Python 2.7 called pyembroidery (pip install pyembroidery) the folder C:\Python27\Lib\site-packages already added to Module search paths in Rhino, when i try to load the...

View Article

Get Objects that Intersect a Plane

Hi, Is there a function that will return all objects that intersect a plane, for example the XY Plane? I want the guid of any polysurface that shares an intersection with the plane. Preferably in...

View Article

Sort a csv file in Python

Hi I need to open and sort a csv data file in Rhino Python, I was going to use Pandas Data Frame module before I discovered that I cannot use it in IronPython so any advice of an alternative approach....

View Article
Browsing all 4131 articles
Browse latest View live