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

Moving Control Points of a Line Relative to the Surface Normal

Hello, I want to move the control points I selected on a line according to the normal direction of a surface. But I couldn’t do this. I tried writing it with script but I wasn’t successful. I want to...

View Article


Image may be NSFW.
Clik here to view.

Control edge continuity using SweepTwoRail or similar in RhinoCommon?

Hi all, I am trying to create a surface with G2 continuity with its adjacent faces. In Rhino, there is a “edge continuity” option in Sweep2 command. However, I could not find similar option in...

View Article


How to shorten the code? - Def()

What is the most effective method for rewriting this code in a manner that is both concise and elegant? def xy(): xset = {x for x in range(-4, 6)} yset = {y for y in range(-3, 4)} A = {(x, y) for x in...

View Article

Why I do get "( ResetEngine )" when running script from a macro?

I do have a script for which I do created a macro button and every time I do launch the script from the macro button I do get an “( ResetEngine )” in the console and also the script runs painfully...

View Article

Hash() and (un)hashable type: set()

Is my analysis correct? unhashable set(): (We are aware that) the location of elements in a set() is interchangeable. However, the concealed hash function’s rule is ‘unhashable’ on set() in...

View Article


Image may be NSFW.
Clik here to view.

Issue with PolylineCurve Output in Custom Plugin (GHPython)

Hi everyone, I’m developing a custom Rhino 8 plugin using the RhinoScript editor, and I’m encountering an issue when trying to output PolylineCurves generated from a CPython script. My script...

View Article

No Title - Different type of 'error'? (True, False)

a, b in RealNumber, it should be always ‘TRUE’… a > (a+b)/2 > b AND a**2 + b**2 >= 2*a*b But, why ‘False’? r = range A = {(a > (a+b)/2 > b) is True for a in r(-10, 10) for b in r(-10,...

View Article

[Request] Quick & Dirty lay flat

(topic deleted by author) 1 post - 1 participant Read full topic

View Article


[Request] Quick & Dirty lay flat

If someone is interested, can you make this one (in Python): Call the script via macro or keystroke if object wasn’t pre-selected, an option to select the object click on a planar face of the object...

View Article


Image may be NSFW.
Clik here to view.

Orienting the control points of a curve to the normal of a surface

Hello, I want to quickly move the control points of the white line shown in the picture to the normal of a surface, but I can’t do this without the red line. Is it possible to do this? I explained it...

View Article

Image may be NSFW.
Clik here to view.

ScriptEditor Development Mode

I click this button hundred of times a day: Because I change code in vscode my of a locally installed package that is in constant development. @eirannejad is it possible to force reloading packages...

View Article

RunPythonScript still runs in IronPython on Rhino 8

Hi:) I wanted to run a python script through the “RunPythonScript” command but this still runs on ironpython and not cpython. Can I change that somewhere ? Best Niclas 2 posts - 2 participants Read...

View Article

Image may be NSFW.
Clik here to view.

Python error only when ran inside GH

Hello, I have been calling the SAP2000 API inside Grasshopper since Rhino 8 release. However, last week I started getting this error in my previously working components: The API (comtypes library) is...

View Article


Image may be NSFW.
Clik here to view.

EtoUI, slider controls

I am using python to learn the Eto module How can slider controls in EtoUI in python be tracked in real time by tag controls I gave self.m_slider.Value to self.x_label.Text in the code, but I found...

View Article

_TestEnableMultithreadedMeshing Rhino 8 – Shaded fails & OBJ Export Crash

Hi everyone, I’m experiencing an issue in Rhino 8 when enabling the _TestEnableMultithreadedMeshing command at startup. If I activate this setting, Rhino fails to display the Shaded view and instead...

View Article


Freeing RAM after executing a function in a Python script

Hi everyone, I’m running a Python script in Rhino, and I noticed that after executing certain functions, memory usage remains high. Is there a way to free up RAM after a function has finished...

View Article

Replacing existing text through python script?

Hey there, so my problem is that I have an existing text in my rhino document (Bauherr: Max Mustermann), that I want to replace through grasshopper via cvs. file that has the actual name, that I want...

View Article


Font size in Python editor can't be changed

(Rhino 8, Mac, Python 3 Script in Gh) I changed the font size of my script editor in Tools > Options, but set it too small, and now I can’t read anything. The Options bar won’t open anymore, it...

View Article

Image may be NSFW.
Clik here to view.

Antivirus software reports viruses to rhp files compiled by ScriptEditor

When I install RhinoVAULT using PackageManger, my velvet antivirus software prompts me that there is a virus. I’ve tested other rhps compiled with ScriptEditor and have this issue as well. 2 posts - 2...

View Article

Rhino common API - LinetypeScale

Hello, I am new to Rhino and particularly enjoy creating new commands with Rhino scripts. Could you please explain why this code doesn’t work to change the linetypeScale with the Rhino common API?...

View Article
Browsing all 5938 articles
Browse latest View live