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

Error in rs.PopupMenu() location

Does anyone have a workaround for rs.PopupMenu() popping up in the wrong position? By default it is supposed to popup under the cursor, but since V7 or earlier it always is way far away for me, most...

View Article


Image may be NSFW.
Clik here to view.

Remove Intersection meshes faster(Parallel)

intersect simple mesh=parrallel.gh (5.6 MB) i try write a code to remove Intersection meshes from List(remove from intersectn list all(intersect) -1) i Test 2 way first for loop and second parrallel;...

View Article


Force render mesh creation on object without displaying it?

I am looking at creating arrays of thousands of identical objects, my idea is to force the render mesh on the first object before arraying it so the render mesh is copied along with the object...

View Article

RhinoApp.Runscript not working in C# script from toolbar

I am trying to use RhinoApp.Runscript inside a C# script. When I hit the ‘Run’ button inside the ScriptEditor, it works perfectly. However I would like to assign the script to a toolbar button, with...

View Article

Image may be NSFW.
Clik here to view.

Error code script link "Offset-Curve"

in Rh8 lasted update using new script editor, there are some problems with this code linked. . . www.rhino3d.com Offset Curve Demonstrates how to offset curves to one side or another by a distance....

View Article


Image may be NSFW.
Clik here to view.

Find the two closest parallel lines and create a loft

I want to find the two closest parallel lines among the many lines and make a loft. Additionally, I would like to include an option that excludes lines below the entered length value. I need some...

View Article

Adding a reference to plugin dll in C# script?

In a Python script, I can add a reference to my plugin dll, and use the plugin classes in the script, as in the following example script. Is there a way to get the same functionality in a C# script ?...

View Article

Image may be NSFW.
Clik here to view.

ScriptEditor - could we get the little vertical line at 80 characters?

Like EditPythonScript has… Might also be nice to have an column indication in the status bar for where the cursor is currently located like some notepad-style programs have. 2 posts - 2 participants...

View Article


Image may be NSFW.
Clik here to view.

Same code but different results in GH Python3 and Python 2 components

Not sure if it’s a bug, but when I try to filter input values, it gets different result in python3 component. The code is pretty simple: if x%2 == 0: a = x else: b = x 1 post - 1 participant Read full...

View Article


Image may be NSFW.
Clik here to view.

How can I get hint in Script Editor?

How can I get this kind(red) of friendly hint of method in the R8 Script Editor. And please tell me how I can do python script in VS Code. Below is the whole code I have written following the...

View Article

Select all degree 5 or above surface, or curves at once in rhino file

I ask this because recently the factory raise an issue that they do not accept any surface that is degree 5… so I have to explode the poly surface and pick all of them to convert… any quick way? I...

View Article

"Select by material name" with python and/or rhinocommon

I have been trying to perform “select by material” with script in python or rhinocommon. Couldn’t find anything similar in the doc… There is a series of findby… methods under...

View Article

Scripts not working in rhino 8

I have all these scripts that when i try to run they just go blank is there some other way to load my py scripts? from r7 and previous @pascal 3 posts - 2 participants Read full topic

View Article


Rhino 8 - Python 3 - input function

While is input() not working in Python3.x for Rino 8? Even this basic scritp does not work datain=input(“Insert string”) 2 posts - 2 participants Read full topic

View Article

Offset Line (Crv) method with Both Sides option?

Hi I am trying to offset a 2 control point line in grasshopper. The Rhino Offset command works perfectly with Both Sides option and Round Cap option, but its only in Rhino. The pufferfish Offset Curve...

View Article


Scripteditor crashes Rhino8 when C# scriipt is changed from VisualStudio

I noticed that while a C# script file is open in ScriptEditor, when that same file is changed from VisualStudio, this causes a crash. It only seems to happen with VisualStudio, not with another...

View Article

A closed brep based on three and more c-planes

Hello, is there a concise way to generate a closed brep based on the intersection of three c-planes? My approach involves finding the intersection lines of the c-planes, then combining them into...

View Article


Image may be NSFW.
Clik here to view.

Python requirements in Rhino

@eirannejad, A new syntax has just been approved for Python scripts which specify their own requirements, equivalent to the # requirements: package_name lines used by the new script editor in Rhino 8....

View Article

Define a block by using an insertion plane in Rhino and not GH

Hi @dale @fraguada, How do I define a block by using x and y directions and an insertion point in Rhino 7? PS. I do know Elefront allows to add an insertion plane. I’m looking for a similar feature in...

View Article

Python script to 'Select Sublayer Objects'

Hi! I am trying to script the ‘Select Sublayer Objects’ command from Layers but so far I don’t even know where to start looking for this command. Is there someone willing to provide slight guidance or...

View Article
Browsing all 4120 articles
Browse latest View live