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

ETO Forms and de activate text box

How can I disable / hide whatever text box label 4 if Radio button index is 1 and keep it active if index is 0. class GeoAssociateDialog(forms.Dialog[bool]): # Dialog box Class initializer def...

View Article


Catching MessageBox & Popups

Hi there, Is there a way to catch MessageBoxes and popup, using IronPython? I want to catch them for testing purposes. My goal is to test multiple variations of the same algorithm without being...

View Article


Image may be NSFW.
Clik here to view.

Multiline Description in New Script Component

I love the new script editor and its features. It’s great for adding short descriptions for components and their parameters. But, I’m having trouble adding multi-line descriptions like this. I used...

View Article

How to compile Rhino8 Python3 component?

How to compile python3 script into grasshopper component? I know the methods in Rhino 7 IronPython, but it’s not working in Rhino8 python3 script. 2 posts - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Can I get Model Scale in Page View?

Can I get Model Scale in Page View using C# scripts, please see the attachment below. I need to get this value and then dynamically change the size of the model I draw, is this possible because if I...

View Article


History in script

Hi, using RCommon with Py or C# even for a simple script like curve offset, Rhino does not store history. there is a way to do it? ps another method, besides using Rhino commands with rs.Command 2...

View Article

Automated modifications on rhinoceros and grasshopper

Hello, I would like to know if it is possible to automate modifications on a 3D file, and a grasshopper script. My idea is as follows: 1 - I have a 3D file 2 - Import the file on rhino 3 - Run a...

View Article

Image may be NSFW.
Clik here to view.

Type Hinting in Script Component

Hi @eirannejad An empty input parameter with type hinting isn’t working as expected. Please see the attached file for details. TypeHinting.gh (16.0 KB) Thanks for checking into this! 1 post - 1...

View Article


Can't find a way to check if RevSurface is transposed

Hi! I’m new in Rhino. Tried to export geometry data into my app using C#. But faced with a problem when exporting surface of revolution. It turned out that Domain(1) returns an angle interval for the...

View Article


Dock Command Prompt to bottom (Options.Appearance.CommandPromptPosition)

Hi, is there a way to dock the Command Prompt Panel to the bottom other than manually drag it there? There is an advanced option, Rhino.Options.Appearance.CommandPromptPosition, that in Rhino 7 seems...

View Article

Image may be NSFW.
Clik here to view.

Individual Area Centroid Script

I wanted to share this script ChatGPT wrote. It’s a modified version of the AreaCentroid command that can do many individual objects at once. First image left is the current command and right is the...

View Article

Another script: Delete Mode

This is just a slightly modified version of the delete command. When employed, you enter a Delete Mode so everything you click is deleted. Once you’re finished press enter and the command stops. I...

View Article

Python3 script parameter breaks printing (8.3.23354.09002)

It seems that when using a text input (and a file on disk) in the script input parameter as opposed to running the script using the internal code editor, printing i.e print('x') does not work. This...

View Article


Importing ghpythonlib using Rhino 8 Script Editor

This may not be intended to work regardless, but while investigating some capabilities of the new script editor, I have run into a bug which crashes Rhino. I have a Grasshopper script which I am...

View Article

Image may be NSFW.
Clik here to view.

Polyline in new Script Component

Hi @eirannejad In the new Script Component, there’s a problem with polylines, check this file: Polylines.gh (15.9 KB) 1 post - 1 participant Read full topic

View Article


Setting gamma 1 and skylight off as default render settings

is there a way to do it or to set it as a Rhino starting command? 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Adding local packages to Python scripts

Hi All, I am attempting to import a .py file to access functions. It works if the file is in the same folder, but I want all my libraries in a separate folder. The following page recommends using the...

View Article


Eto in Rh8 - Py2 to Py3

Hi, but Eto codes made with Py2, how to modify them to fit Py3? 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Default Inputs Not Supported

When you publish a plugin with the new script editor, I thought it would automatically pick up the default input from the data we’ve already internalized. defaultInputGhc.zip (114.7 KB) Perhaps...

View Article

New Script Components Incompatibility Issues in User Object

It looks like when I make a user object using the new script component, it only works in the same version. In a different version, users are running into one of these error: Rhino version older than...

View Article
Browsing all 5938 articles
Browse latest View live