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

Image may be NSFW.
Clik here to view.

Need an algorithm to generate center line

Hey - for past couple of weeks I’ve been struggling to create and algorithm that generates center line (red curves in the attached image) of any given one or two closed curves (black curves in the...

View Article


Image may be NSFW.
Clik here to view.

Eto radiolist groupbox

Hi, All using ETO, it would be possible to create a structure like this: in the layout I have already inserted the three group boxes and the list of radio buttons (vertically) but it is the...

View Article


Image may be NSFW.
Clik here to view.

Dogbone script?

Hi, Does anyone have or know of a script that will make these in this way? I’ve probably modeled that 4000 times by now and I’m sick of doing it maybe for Rhino itself, it seems like what should/could...

View Article

Image may be NSFW.
Clik here to view.

rs.AddLeader problem

Hi I couldn’t find out how to create a leader from script. Currently I’m using Rhino 7. got the same problem with rs.AddText(rs.AddText(“Hello Rhino!”, (0,0,0))) I’ve tried all the codes at this post....

View Article

Image may be NSFW.
Clik here to view.

Polylines from Vectors

Hi guys, I’m having trouble creating Polylines from a field of vectors. I have a List of vectors, points and cells. They are all in the same order. My idea is to start a polyline from the startpoint...

View Article


Test Curve Linear & Degree 1

Hi All, https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.curve/islinear the method indicated in the link checks if a curve is linear, but to check if it is also a simple straight line with...

View Article

Image may be NSFW.
Clik here to view.

Set new Dimension Style from GH

Hi everyone, I am trying to create a new Dimension Style from scratch and set it as the current one in Grasshopper. I tried to build the code but something is wrong since the new style is created but...

View Article

Insert only visible layers as block

Assuming this can’t be done without Scripting, and I don’t have time while I’m working at the moment. Anyone have/able to make this .py script? File B - Use “Insert” and choose File A File A -...

View Article


Edit button's linked script

Maybe this is an interesting one? How to write a script that opens a chosen script’s button for editing? 1 post - 1 participant Read full topic

View Article


Output of Fx not correct - Rhino bug or script bug?

One of the options in the attached Python script is to output a column showing ‘Other Attributes’, which my script gets from Attribute User Text. This works great, unless the Value is a function, in...

View Article

Image may be NSFW.
Clik here to view.

Creafting a Brep.IsCurveInside method

Hi everyone, I’m trying to compute if a curve is inside a Sphere (well sometimes it could be a collection of Spheres instead of a single one) In the scenario I’m working on, it never happens that a...

View Article

Image may be NSFW.
Clik here to view.

Python - loading and linking geometry from rhino to grasshopper

Hi All, I’m trying to write a component similar to the geometry pipeline in grasshopper. Basically, I want to load objects from certain layers to grasshopper and filter those that are inside the...

View Article

Image may be NSFW.
Clik here to view.

Disable RadioButton

Hi, everyone items_to_disable = ["Mild steel", "4140"] for rb in self.radiobuttonlist.Children: if isinstance(rb, Eto.Forms.RadioButton): if rb.Text in items_to_disable: rb.Enabled = False Is it...

View Article


Image may be NSFW.
Clik here to view.

Icon meaning?

I can’t find anything about what these icons mean in the Python Editor. Can someone explain them or point me to a reference? 3 posts - 2 participants Read full topic

View Article

Python script that changes geometry of objects in document

Hello, I am trying in grasshopper to select all the meshes in the Rhino document and check if they are not closed, so that I close them using Rhino.Geometry.Mesh.FillHoles(), the script below runs...

View Article


Python Help Setting Current View Within Loop / Inserting Block

Hello, I have a bit of python code I’m working on that inserts blocks into the current layout view but am trying to insert a block into each layout view within the list of input views. The psuedo code...

View Article

Rhino crashing during grasshopper run (Python node)

Hi, I’m facing an issue, that Rhino crashes, when I’m running a grasshopper file. The file mainly consists of a Python node, which contains some parallel processing. The process works iteration wise....

View Article


Image may be NSFW.
Clik here to view.

ExtractIsocurve through Greville points

Although not very impressive on its own, the output of spb_ExtractIsocurvesThruGrevillePts.py can be used by _Sweep1 to create the input surface. Before doing so, the shape curves can also be...

View Article

Toggling advanced options via script?

I’m looking for a way to toggle the Rhino.Options.Advanced.UseCompressionWhenSaving in the advanced tab of options. Not sure how… Any insight would be great. 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

LinearDimension.GetTextRectangle beeing weird on generated dims

It seems that GetTextRectangle behaves differently with “generated” dimensions than with the ones “selected” from the model. The third test (“spooked”) kind of “refresh” the object table (I guess)....

View Article
Browsing all 5938 articles
Browse latest View live