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

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


Eto in Rh8 - Py2 to Py3

Hi, but Eto codes made with Py2, how to modify them to fit Py3? 2 posts - 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

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


rs.OpenFileName file filter problem

Hi @Alain, i’m not sure if this could be called a bug but rs.OpenFileName seems to allow me to select an *.url file instead of an *.svg file in below example code: import rhinoscriptsyntax as rs file...

View Article

Duplicate Layer Multiple Times Script

Hello, I made this script which creates multiple copies of a layer structure in one go. The script takes the layer you have currently selected, asks you for the number of duplicates you want, and then...

View Article

Issue with multiple inheritance of Eto.Forms.Dialog with py3 in rhino8

Hi there, I am trying to port my rhinoscripts from ironPython2.7 to python3 in rhino8. I often use a mechanism that inherits multiple parent classes to combine Eto.Forms.Dialog and Eto.Forms.Form....

View Article


Image may be NSFW.
Clik here to view.

ETO forms and Radio Buttons

Hi hope you all had a good Christmas. I am struggling with an ETO form and need some assistance. Can anyone please show me the code that when I select the radio button for Fit Plane the input box for...

View Article


Image may be NSFW.
Clik here to view.

Bug:rs.ObjectsByType() not working in python3

In Rhino8(8.2), I found when I run print (len(rs.ObjectsByType(4))) it gets different results in python3 and python2(ironpython) In python2 it works fine to get only curve objects, but in python3, it...

View Article

Image may be NSFW.
Clik here to view.

C# script about mesh report not working with solid mesh

Mesh Report Debug V0.gh (1.1 MB) Hi, I am trying to learn C# scripting, and I’ve created a simple script that generates a mesh report. However, I’m encountering an issue—it doesn’t work with meshes...

View Article

C# Grasshopper C# scripting component IntelliSense seems not to work

Grasshopper C# scripting component IntelliSense seems not to work. I can’t find a Preference option to enable. From the Forums I do know this has been a sporadic problem, but not sure why I am...

View Article

Grasshopper C# scripting component IntelliSense seems not to work

(Reposted from Scripting Forum) Grasshopper C# scripting component IntelliSense seems not to work. I can’t find a Preference option to enable. From the Forums I do know this has been a sporadic...

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


Backup Up Settings, Screen, and Toolbar changes One Click

I use my floating rhino between several computers depending on where I am that day. I make improvements to my settings, toolbars, & workflow macro buttons quite a bit. It’s been a pain trying to...

View Article

Image may be NSFW.
Clik here to view.

Loose fit BoundingBox

Why am I getting a extended bounding box for a plane surface. I am generating the box for a plane surface. Is there a way to get tight bounding box? Here is the C# script I am using. RhinoDoc...

View Article


Image may be NSFW.
Clik here to view.

Stop Debugging Button

should the button in the photo stop debugging? when I run a script, the button is grayed out. . . 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Need help to Recreate Move Command with Custom Direction

Hello grasshoppernians! So, I want to recreate the move command in pythonscript (if it can be done directly from grasshopper better). This so I can add another option to move in a custom direction...

View Article

Why does modifying Leader cause the Rhino to crash?

I attempted to add control points to a Leader using the following code. The control points display correctly, but the Rhino software crashes when I try to drag any of them. Does anyone know the reason...

View Article
Browsing all 4125 articles
Browse latest View live