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

Generating all possible geometries having specific constraints

NicolasM wrote: Hi, I a new newbie and wonder if Rhino script (in python) could achieve what I want: I have a 2d polygon surface (generally 4, 5 sides) and I would like to generate all the possible...

View Article


Main Window Form

Bert Gay wrote: I have a modeless tool window that I want to float on top of the Rhino Main window at all times. I tried using the form.TopMost property, but realized that this made the dialog sit...

View Article


Autonomous Scripting

David wrote: DEFINITION"Self-contained Scripting" or "Autonomous Scripting"Creating a script which,apart from the initial input, can run to completionand produce and/or modify an object in a...

View Article

Image may be NSFW.
Clik here to view.

GetPoint.OnDynamicDraw with shadows

emilio morello wrote: Hi all,I'm seeing something unexpected when deriving a class from Rhino.Input.Custom.GetPoint to override the OnDynamicDraw() method.If the shadows are on, the solids show black...

View Article

Preselection with -_SelLayer _Pick

Silvan wrote: Hi All, I have an object preselected. Then I do:-_SelLayer _PickMy previously selected object is still selected. I hit enter. The selection does not change. I still have the initially...

View Article


Pyhull in rhino python

Poltak wrote: Hi, I would love to use the pyhull module in Rhino Python. But after some research I found out that the pyhull module needs the numpy module.Here is the problem: numpy is not available...

View Article

CreateRegions in rhinoscriptsyntax

Kasper Steenstrup wrote: Are there any rs."something" that dose the same as CreateRegions command in rhino? If not, can I use the command to call the command: import rhinoscriptsyntax as rs s =...

View Article

Help to get Material Info (RhinoPython)

Jesus_Lopez wrote: I'm trying to get the notes information from a material applied with Rhino. I tried the next instruction, but I couldn't obtain what do I want import rhinoscriptsyntax as rsimport...

View Article


Python code does not work correctly!

@zhangvip0755 wrote: Hi I am trying to run the following code in PythonScript: Source: https://developer.rhino3d.com/samples/rhinocommon/add-radial-dimension/ from Rhino import * from Rhino.DocObjects...

View Article


Image may be NSFW.
Clik here to view.

How to compute the normals at vertices of a mesh face in C#

@mahanmotamedi1991 wrote: Hello everyone, I have a simple quad mesh face and I want to retrieve the for normals of the vertices (shown in the Image) using c#. I used mesh.NormalAt(x,x,x,x), but this...

View Article

How to change the style of annotations of several blocks with Python?

@David_B wrote: Hi, I’m working on a cleaning script. My goal is to associate every annotation of my drawing to the “Default” style. This is the part of the script for simple objects (not in block):...

View Article

Export selected by automatically using the object name as a file name? Rhino...

@Rhino_Bulgaria wrote: Hello, is there a way to do a macro and assign it to a single custom icon, doing the following? Once I select a group of curves that forms a flat drawing for laser cutting, I...

View Article

Image may be NSFW.
Clik here to view.

Find point in a particular distance

@sumuk wrote: Hi, Greetings! I have a problem, I need to find a point in a particular distance example: consider a curve which has points on it Consider this point on the curve, lets call A Suppose if...

View Article


BoxEdit and Python?

@jeremy.kaiser wrote: Can you control boxedit through a cli or python? Posts: 2 Participants: 2 Read full topic

View Article

Image may be NSFW.
Clik here to view.

Using Python to set the colour of the largest sphere

@DanBayn wrote: I’ve got a project that is going to require something like this: image.png809×385 33.8 KB It’s easy enough to find the radii of the spheres, but I’m not sure if there is a fairly...

View Article


Calculating the distance between all the combinations made by one column by...

@tinkuhim007 wrote: I need to calculate the distance between all possible contact points present in the dataframe using python3. My code is working but it is very slow. How to reduce the time?...

View Article

Image may be NSFW.
Clik here to view.

Splitting surface with curves python component in GH

@revink wrote: Hi all, I have several surfaces I have to split with curves within a grasshopper python component. I think I have managed to split them and the result are breps. However, I need these...

View Article


Image may be NSFW.
Clik here to view.

PointCloud AddRange

@Mrothart wrote: Hello, I am trying to import a pointcloud with a .txt/pts format with x,y,z,r,b,g values using a python script. I am currently using “pc.Add” for each individual point, but I am...

View Article

Create linear / rectangular lights in grasshopper!

@arkadius.belov wrote: Hi all I am aware that Human has a Light component, but i want to create linear or rectangular lights in gh. Searched through the plugins, and i can’t find anything, maybe there...

View Article

ProjectToCPlane command doesn't run on my C# script

@hk1 wrote: Hi, I was developing my command to call “ProjectToCPlane” internally but it never get through the command. Feels like I need some special trick before calling ProjectToCPlane… Can you help...

View Article
Browsing all 4114 articles
Browse latest View live