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

Shared ETO dialog

I have a non-modal ETO dialog which contains various tools for modeling, layouts etc… I often have several Rhino files open and have to open a new instance of the dialog for each instance of Rhino. Is...

View Article


Image may be NSFW.
Clik here to view.

Circle Packing on surface in Python

Greetings, I was looking for a Python solution for circle packing on surface, or at least on a boundary. Most useful seems to be the VBscript written by Steven Janssen, which I translated to Python...

View Article


Help: Scripting mouse press and release events? (Sketch)

Hi, I’m working on a tool that lets you draw ‘freehand’ more precisely and with more control than the sketch tool. Certain posts in the forum require it: Sketch tool settings Sketch tool smoothness...

View Article

NetworkX/ Grasshopper/ file name or extension is too long error

Hi, I’m working on a Python script that uses NetworkX, and I’m encountering an intermittent error: Error running script: [WinError 206] The filename or extension is too long:...

View Article

Image may be NSFW.
Clik here to view.

Python Module Import Error Ctypes

Hi, I just updated Rhino 8 and am now getting the following errors: Traceback (most recent call last): File...

View Article


Image may be NSFW.
Clik here to view.

[python] Can't scale breps non-uniformly?

I was unable to scale a brep. And I can’t tell if it is a bug or by design. It was very unexpected, though. The code below did NOT work. #! python 2 import Rhino.Geometry as rg import Rhino import...

View Article

Inefficient selecting script

hey, I want to select duplicate lines within a certain tolerance in Rhino and wrote the following script for that: import rhinoscriptsyntax as rs toleranz = rs.GetReal("tolerance in mm", 0.1, 0.001)...

View Article

How I can use preselected objects in scripts?

How I can make the following code to work with multiple preselected objects instead to ask-me to select an object? obj = rs.GetObject("Select object") if obj: rs.SetUserText( obj, "Key1", "0" )...

View Article


Simplify the script using CurveBoolean command

Hi all, I have a code for connecting two closed curves with a bridge by picking two points on closed curves. However it seems code is very complicated and gives error sometimes. Would like to use...

View Article


Change the colormode of ViewCapturetoFile

Is there a way to change the colormode of command “ViewCapturetoFile” ? So that I can choose to output a BlackAndWhite, PrintColor or DisplayColor? Colormode setting is currently unaccessible through...

View Article

Image may be NSFW.
Clik here to view.

Setting HatchPatternFillType not working for Gradient?

Hi, I am trying to code some patterns and I am stuck at gradients. Somehow, I cannot set the FillType to “Gradient”, Solid and Lines work though (see...

View Article

Image may be NSFW.
Clik here to view.

Connecting two closed curves

Hi all, I need help for a script for connecting two closed curves by adding small bridge curves… Here is the example; Select 1st object by clicking 1st Point, select 2nd object by clicking 2nd Points...

View Article

Rhino 8 ScriptEditor file tabs window feature missings

Hi @eirannejad, if you open more files in the ScriptEditor than fit in the file tab window size, you can do this, but you cannot access these files directly. You have to resize the window or close...

View Article


Rhino 8 ScriptEditor feature requests

Hello all, I opened this topic because the other design feedback topic is restricted to Grasshopper and I think a couple of features make more sense for the use case of the ScriptEditor directly in...

View Article

Image may be NSFW.
Clik here to view.

Pycharm_auto sync instead of trigger?

Hi all, I’m just using an old image from a different question that I didn’t get an answer to. Anyway… Recently, I came across with this topic I saw that by using VS Code it automatically syncs the the...

View Article


Image may be NSFW.
Clik here to view.

How to open unsafe mode in C# for grasshopper

Trying to use pointer in C# for grasshopper, but it seems that Script Editor doesn’t have a unsafe mode button like VS Studio, and it is a failure to add “unsafe” before using pointer. So how can I...

View Article

Image may be NSFW.
Clik here to view.

Connecting two closed curves

Hi all, I need help for a script for connecting two closed curves by adding small bridge curves… Here is the example; Select 1st object by clicking 1st Point, select 2nd object by clicking 2nd Points...

View Article


Rhino.FileIO.File3dm.Read problem

Hi there, i’m trying to import a named mesh object from a file using: f = Rhino.FileIO.File3dm.Read(file_name) If i query eg. f.Objects.Count it gives the right amount of objects in the file. However...

View Article

Image may be NSFW.
Clik here to view.

Result Split Brep with Curves in RhinoCommon

Dear community members, i am trying to project a text on brep and split it. instead of projecting or pulling i found that Rhino Common command Brep split works well....

View Article

Image may be NSFW.
Clik here to view.

CaptureToBitmap not working in new Python in R8

I made python script for create picture from rectangle. It works in old python. But not in new one. Can you help me please guys ? printscreen.gh (278.3 KB) 1 post - 1 participant Read full topic

View Article
Browsing all 5938 articles
Browse latest View live