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

Image may be NSFW.
Clik here to view.

Display Issue with the new Script Editor on a 4k screen

Hi all, Just a minor issue. It seems the new Script Editor doesn’t calculate the position correctly in GH on a 4k screen with a 200% scale factor. Thanks, and hope this is enough for you to recreate...

View Article


GHPY After compiling, parameters can be dynamically added or subtracted

I need to make the I/O changes in the compiled Python code. The target plug-in is the Merge plug-in for Tree. But I didn’t find the right way. Some uses of the framework are unfamiliar. Ask if there...

View Article


Image may be NSFW.
Clik here to view.

Python3 cannot slice a list

Python3 cannot slice a list 8 posts - 4 participants Read full topic

View Article

Match surfaces by C# script

Could help me to match 2 surfaces by C# Script? 2 posts - 2 participants Read full topic

View Article

Where to write scripts for GH? Rhino ScriptEditor or "Visual Studio Code"

Dear Rhino-Community I like to get into scripting a bit (mainly creating custom GH Blocks/Nodes), but need a little nudge in the right direction. I have a lot of experience programming in VBA, but...

View Article


Image may be NSFW.
Clik here to view.

Custom Python modules not referenced from scripts directory any more?

Hi, I’ve just recently upgraded to Rhino 8 and was glad to see that the script editor is a huge improvement over the old one, especially on macOS! Thanks. I’ve noticed that my custom Pythonic modules...

View Article

RhinoObject.UserDictionary not available in V8

Hi @dale, in Rhino 7 i was able to store things in a rhino object’s UserDictionary and if i accessed it, i got an ArchivableDictionary. Trying below gives None using Rhino 8: import Rhino import...

View Article

Image may be NSFW.
Clik here to view.

Fibonacci pinecone ellipsoid generate failed

Hi all, I used chatGPT to write a script to create an actual pinecone volume like the pictures shown. However, it didn’t run successfully. The script is: import math import Rhino.Geometry as rg #...

View Article


How to get a part of a Circle/ArcCurve

I am trying to get a part of a Circle and an ArcCurve via a custom domain utilizing the Trim method of the ArcCurve class but get the same full circle instead of the desired part. Can someone point...

View Article


Rhino8 python subprocess.check_output() error

Hi There, In rhino7 I was used to running a piece of code that runs an external instance of python3.11, to perform functionality that wasn’t available in Ironpython2.7. If I run the same piece of code...

View Article

Cannot modify the arrow style of the Leader object

I can’t modify the arrow type of the Leader object in code, can anyone tell me why, I’m using Rhinoceros version 7, here’s the code snippet: Point3d point1 = startPoint; Point3d point2 = startPoint +...

View Article

Wish - rs.ColorListBox()

Like a list box, but can be populated with colors. The input arguments would be a list of ARGB colors and a corresponding list of color names. The on-screen dialog window would show decent-sized color...

View Article

How to know whether a type is Value type or Reference type?

Just starting to learning C# for Grasshopper, the type difference troubles me. Is there somewhere in RhinoCommon API to show whether a type is Value type or Reference type? @c# 3 posts - 2...

View Article


Image may be NSFW.
Clik here to view.

How to get the ActiveViewport in C# for grasshopper?

I recently using c# for grasshopper, and troubling with get ActiveViewport. The code that copy online do not work. 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Rhino8: Python Scripting Access to all UI Colors

Hi I just tried to find a way to change UI colors through python scripting and do not find a way to access all UI color options. For example, I want to be able to change: Options Appearance Custom...

View Article


Eto Dialogs - Theme Color

For those of you creating dialogs or forms using Eto, if you want to add theme color (e.g. dark, light) support to your forms, then add the following statement to your dialog or form initializer....

View Article

Add date automatically in front of file name

Is there a script to automatically add the date in front of a file name? I found an older script that would add it to the end, but can not seem to get it in front. 3 posts - 2 participants Read full...

View Article


Image may be NSFW.
Clik here to view.

Using Python to Implement the Status Bar

I want to know if it’s possible to write something similar to the restart Grasshopper button in the status bar using Python 3 posts - 2 participants Read full topic

View Article

RhinoApp.RunScript() is not working on separate thread

Hello! I am trying to run a Rhino.RhinoApp.RunScript() in Python3 for Rhino8 from a seperate thread with: import Rhino import threading def my_func(file_path): result : bool =...

View Article

ExtrudeCurveTapered

Would be nice to have this available under Python Script too. Unclear to me why some methods are missing from Rhino.Python but present in Rhino.Script....

View Article
Browsing all 5938 articles
Browse latest View live