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

Extrude curves in RhinoScript Editor

I’m putting together a script and what I want to do is the following. This will be part of a script that imports DXF drawings from a folder, joins the lines, creates a group, extrudes a distance and...

View Article


Python Script input in grasshopper

noob here! im trying to input a python script from chatgpt to generate an image in grasshopper but when im pasting it said " Cannot edit in read only editor " please help 5 posts - 3 participants Read...

View Article


Developing on Rhino 8, how to test Rhino 7?

Hey all, I’m developing a plugin on Rhino 8. What is the best way to test it on Rhino 7? Do I need to get both license? Thanks! 2 posts - 2 participants Read full topic

View Article

AddPolyline

How do you add a Polyline to Rhino even if it is not valid? Rhino.RhinoDoc.ActiveDoc.Objects.AddPolyline(polyline) What I specifically refer to are polylines with duplicates points, I need to keep it...

View Article

ScriptEditor Commands order in a toolbar

When creating python command plugin via script editor, how can I define the order of button in a toolbar? 4 posts - 2 participants Read full topic

View Article


Import Geometry

How can I import a complex STEP file, retain only the outer surface, and convert everything inside into a solid block? Is there a Python script to automate this process for large assemblies? 2 posts -...

View Article

FitPlaneToPoints for colinear points does not result in 'inconclusive'

If you pass three or more colinear points or points in the same location to Plane.FitPlaneToPoints the FitPlaneResult shows “Success”. Shouldn’t that be “Inconclusive” instead? from Rhino.Geometry...

View Article

TextEntity.RichText do not seem to support new line from RichTextBox

I am running into problems when trying to add new line using RichTextBox but not with Plane text. I have tested it in Rhino 7 (SR37) and Rhino 8 (SR17) TextEntity text = new TextEntity(); RichTextBox...

View Article


A script to turn Zebra and Emap on and off

Hello, Could someone give me an alias for turning on Zebra and when it prompts you to select your object to have it select all and then to turn if off? I would really appreciate it. Thank you 3 posts...

View Article


How to Change Geometry with ETO Sliders (Without Crashing Rhino)?

I’ve got some scripts I made in Grasshopper that I would like to convert to Python/ETO forms so as to be more user friendly for people who may not be familiar with Grasshopper. I’ve run into a...

View Article

Image may be NSFW.
Clik here to view.

Natural Curve Extension Bug

Hi there, I just got some issues when using the Rhi7’s curve extension function. When I extend the curve by ‘natural’ method to the boundary, the curve unnaturally looping around as shown in the...

View Article

Is it possible to access Grasshopper abilities from a standard ETO form?

I’m not sure how to ask this. I’ve made a halo builder in Grasshopper and I would like to replicate its behavior in a custom ETO form. I’ve gotten started, but I’ve run into several issues. One of the...

View Article

How to turn off ground plane using python

Hey all, I don’t understand why the following code below will not turn off the ground plane for my rendering. Let me know if I miss anything. Thanks! settings = self.document.RenderSettings...

View Article


Roll back previous release

Hi, I’m looking for a way to roll back to a previous release of Rhino8. Excecution of my scripts has become much slower recently, and I suspect this is related to rhinoscriptsyntax and rhinocommon API...

View Article

Image may be NSFW.
Clik here to view.

How do I change the annotated model space scaling ratio?

How do I change this value in python? 2 posts - 2 participants Read full topic

View Article


Get Curve IntersectionEvent

Hi, Is there a way to get resulting curves from curve and surface intersection similar to SCX component by scripting? 2 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Command doesn't work via package manager

Hey all, I published a plugin for my python command. However, after I install it, it doesn’t pop up the form like when I run the script via the ScriptEditor. I installed it via the package manager....

View Article


How to turn off ICurrentEnvironment.ForReflectionAndRefraction

Hey all, I’m getting confused on how to turn off the reflection in the current environment using Python for Rhino 7 & 8. I found the RenderEnvironment in...

View Article

Image may be NSFW.
Clik here to view.

ETO form Script Editor Python button with image

Hi, I would like to ask if someone could show how using eto forms create a button that has multiple buttons with images as a button background? Or if it is not possible, is there any example how to...

View Article

Automatically reassigning annotation style and dim scale

Hey all, New to scripting so fingers crossed this is a simple fix. The gist of what I’m trying to do is automate a process for taking old architectural details imported from CAD and reassign their...

View Article
Browsing all 5938 articles
Browse latest View live